Closed yishinhung closed 2 years ago
Hi @yishinhung! This needs updating to work on newer AOSP. We'll try to update the code and the post to make it work, but we can't guarantee when that will happen.
We'll comment on this issue when it's done.
Hi @barbieri: I use the newest AOSP version but still encounter the follow error. Could you give some suggestions for me? Thank a lot!
AOSP version: --> android-12.0.0_r27
Build command: --> source build/envsetup.sh --> lunch aosp_x86_64-eng --> m sdk_addon
Fail logs: : out/target/product/generic_x86_64/system/system_ext/apex/com.android.vndk.current/lib64/libnl.so : out/target/product/generic_x86_64/system/system_ext/bin/sg_write_buffer build/make/core/main.mk:1421: warning: : Module 'adb_keys' in PRODUCT_PACKAGES_DEBUG has nothing to install! Stubbing addon jar using build/make/target/product/profusion_sdk_addon/sdk_addon_stub_defs.txt [100% 211/211] writing build rules ... FAILED: build/make/core/tasks/sdk-addon.mk:82: error: overriding commands for target `out/host/linux-x86/obj/SDK_ADDON/profusion_sdk_addon_intermediates/profusion_sdk_addon-eng.yihsin-linux-x86-img/', previously defined at build/make/core/tasks/sdk-addon.mk:82 08:55:01 ckati failed with: exit status 1
What we meant was that our tool needs updating to work on newer AOSP, last time we used we did it with Android 9. Someone on our team will take the time to investigate the issues with the newer versions, and we will notify you when it's solved.
If you have some progress, please comment here, so we can be aware of it.
Hi @oliveirarleo : I use the android-9.0.0_r61 to add the related patches in android-sdk-addon-example. But, i can't find the mainline_system.mk at build/make/target/product path. Maybe the related codes wasn't based on Android 9? Could you help to confirm which android version can build the android-sdk-addon-example and then i can test it. Thank a lot!
@yishinhung the code is based on Android 10 (API level 29) as the manifest.ini says. I will try to revisit this code today to better see what must be updated.
Hi @g7fernandes If i want to build the sample based on Android 11 (API level 30), do you have any suggestions about the top fail logs? Thank a lot!
@yishinhung The PR 2 was integrated and should solve the problem with Android 11. I did updates to the README also with more detailed instructions.
Thanks!
Closing.
Hi: I build the android-sdk-addon-example by aosp 11 but encounter the following build fail about "Exception in thread "main" java.lang.IllegalArgumentException". Did you have any idea or suggestion for me. Thank a lot!