-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 build hello_ar_c sample with AGP 7.0 #1279
Comments
https://issuetracker.google.com/189366123 may be relevant. |
Probably affected by this issue Android Gradle Plugin 7.0.0 does not include jniLibs in APK if tasks.whenTaskAdded closure is used Replace
|
Workaround seems great; thanks for investigating. Per issue 196413674#5, it seems like an bugfix update will fix this soon. |
As per 196413674#comment7, this has been cherry picked to 2020.3.1, and I've confirmed that building now works out of the box without the workaround. |
SPECIFIC ISSUE ENCOUNTERED
Cannot correctly build hello_ar_c sample when using Android Gradle Plugin 7.0
Gradle build output:
It seems task
extractNativeLibraries
run after task that should depend on it.VERSIONS USED
STEPS TO REPRODUCE THE ISSUE
ADDITIONAL COMMENTS
Change
to
would build successfully. However, sample app crashed due to
UnsatisfiedLinkError
.Error logcat:
If you analyzed output apk, you would find
libhello_ar_native.so
hasn't been packed. Though it do exist in build directoryarcore-android-sdk\samples\hello_ar_c\app\build\intermediates\cmake\debug\obj\arm64-v8a
.The text was updated successfully, but these errors were encountered: