Fixed
Status Update
Comments
cm...@google.com <cm...@google.com>
jo...@google.com <jo...@google.com> #2
This should be fixed as of Arctic Fox 2020.3.1.
Relevant internal change is If038d2c6a8955e87c444e014c21057b2212a1664
Relevant internal change is If038d2c6a8955e87c444e014c21057b2212a1664
gi...@google.com <gi...@google.com> #3
Arctic Fox 2020.3.1 Patch 1 or Bumble Bee Canary.
de...@gmail.com <de...@gmail.com> #4
We were expecting a fix in a new version of AGP, not Android Studio. Our CI does not have AS installed - it runs library snapshot releasing via gradle wrapper set of tasks - how will it know that something is fixed this time?
an...@gmail.com <an...@gmail.com> #5
Looks like AGP 7.0.2 fixes the issue.
Description
Version of Gradle Plugin: 7.0.0
Version of Gradle: 7.1.1
Version of Java: 11.0.12+7 (Zulu)
OS: Ubuntu-20.04
STEPS TO REPRODUCE:
0. Create sample app with NDK.
1. Build the app and find JNI libraries in APK.
2. Add `tasks.whenTaskAdded { }` closure to app/build.gradle.
3. Yearn for the JNI libraries, which are now gone from APK.
Hello,
My attempt to upgrade a project from AGP-4.2.2 to 7.0.0 was not successful,
because the new AGP skips JNI libraries if `tasks.whenTaskAdded { }` closure is present in app/build.gradle.
Tried to reproduce the issue on different AGP versions.
AGP-4.2.2 is OK.
AGP-7.0.0, 7.0.0-rc01, 7.0.0-beta*, 7.0.0-alpha* and 7.1.0-alpha* are all affected.
Issue can be reproduced using "app with NDK" template created by Android Studio Arctic Fox 2020.3.1.
Uploaded code to
Project has Gradle upgraded from default 7.0 to 7.1.1 for AGP-7.1.0-alpha support.
Set up a test matrix based on AGP version -
which builds the app and checks if the libraries are present in APK.
Vilius