Status Update
Comments
em...@google.com <em...@google.com> #2
I've submitted a fix for this, which should (I hope) make it into Jellyfish Canary 12. There's a relatively straightforward workaround, which is to explicitly declare the version of the com.android.tools.build:gradle
artifact in all build files -- in the screenshot, your project has a versioned classpath
dependency, but also an unversioned one, and it's that unversioned one that tripped up the AGP Upgrade Assistant. Since there is that workaround of making sure that all the classpath dependencies on com.android.tools.build:gradle
have an explicit version, we probably won't patch this for Iguana, I'm afraid.
Thanks very much for the report!
lo...@gmail.com <lo...@gmail.com> #3
em...@google.com <em...@google.com> #4
em...@google.com <em...@google.com> #5
em...@google.com <em...@google.com> #6
same problem in latest koala, AGP upgrade assistant never opens
Please could you open a new issue, and upload enough details about your project to be able to investigate or (ideally) reproduce the problem? Thank you!
jo...@google.com <jo...@google.com> #7
jo...@google.com <jo...@google.com> #8
jo...@google.com <jo...@google.com> #9
em...@google.com <em...@google.com> #11
Did you try on windows and AGP 7.4.0-rc03?
It reproduces for me.
em...@google.com <em...@google.com> #12
Here's something that might be related (or might help with repro):
- Using the following puts the
liblog.so
into the APK:
add_library(myapplication SHARED native-lib.cpp)
find_library(log log-lib)
target_link_libraries(myapplication ${log-lib})
With this, I see that build.ninja
contains:
LINK_LIBRARIES = C:/Users/emrekultursay/AppData/Local/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/x86_64-linux-android/24/liblog.so
- Using this does not put the
liblog.so
into the APK:
add_library(myapplication SHARED native-lib.cpp)
target_link_libraries(myapplication log)
With this one, I don't have that LINK_LIBRARIES
. Instead, I see: -llog
.
Description
Repro Instructions:
lib/
folder (under any ABI)Expected result:
libmyapplication.so
Actual result:
liblog.so
,libmyapplication.so