Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot separate APKs with different architecture [RN 0.57] #21072

Closed
zenz opened this issue Sep 12, 2018 · 2 comments
Closed

cannot separate APKs with different architecture [RN 0.57] #21072

zenz opened this issue Sep 12, 2018 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@zenz
Copy link

zenz commented Sep 12, 2018

Environment

Run react-native info in your terminal and paste its contents here.

react-native info

React Native Environment Info:
System:
OS: Windows 10
CPU: x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
Memory: 2.53 GB / 7.91 GB
Binaries:
Yarn: 1.9.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.1.0 - C:\Program Files\nodejs\npm.CMD
React-Native Version: 0.57.0

Description

while changing android/app/build.gradle to use APK separation
def enableSeparateBuildPerCPUArchitecture = true
This will make the assemble failure. and got following error message:

./gradlew assembleDebug

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':app'.

Conflicting configuration : 'armeabi-v7a,x86' in ndk abiFilters cannot be present when splits abi filters are set :
x86,armeabi-v7a

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s

have to also comment out ndk section to make it work. in previous version, only modify the def is OK.

@zenz zenz changed the title cannot separate APKs with different architecture cannot separate APKs with different architecture [RN 0.57] Sep 13, 2018
@zenz
Copy link
Author

zenz commented Sep 13, 2018

OK, I see the solution on wiki, comment out ndk section is a must procedure.

@zenz zenz closed this as completed Sep 13, 2018
@willymulyana
Copy link

willymulyana commented Jun 13, 2019

can it coexist (split abi & ndk)?
i face issue that i need to split APKs (with split abi) while a library should set ndk (react-native-splash-screen). Still not found working solution.

@facebook facebook locked as resolved and limited conversation to collaborators Sep 13, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants