SDK building - development/build/sdk.atree - couldn't locate source file error

522 views
Skip to first unread message

Nicolas Peslerbe

unread,
Jul 19, 2019, 2:26:01 PM7/19/19
to Android Building
Dear all,

I have an error I can't figure out where it comes from but maybe one of you can help me.

I try to build android sdk with the following script:
cd ../rk3399-android-8.1
. build/envsetup.sh
export OUT_DIR_COMMON_BASE=~/androidSdk
lunch nanopc_t4-userdebug

make -j16 dmtracedump
make -j16 etc1tool
make -j16 split-select
make -j16 bcc_compat
make -j16 apksigner
make -j16 dx
make -j16 libaapt2_jni
make -j16 layoutlib-legacy

make -j16 sdk

Everything goes well until it reaches the 100% stage (zip building), at this point I get the following error:
development/build/sdk-android-arm64-v8a.atree:20: couldn't locate source file: /home/peslerbe/androidSdk/rk3399-android-8.1/host/linux-x86/development/sys-img-arm64-v8a/images_arm64-v8a_source.properties
development/build/sdk.atree:143: couldn't locate source file: /home/peslerbe/androidSdk/rk3399-android-8.1/host/common/obj/JAVA_LIBRARIES/shrinkedAndroid_intermediates/shrinkedAndroid.jar
development/build/sdk.atree:161: couldn't locate source file: /home/peslerbe/androidSdk/rk3399-android-8.1/host/linux-x86/development/sdk/platform_source.properties
development/build/sdk.atree:167: couldn't locate source file: /home/peslerbe/androidSdk/rk3399-android-8.1/target/common/obj/PACKAGING/android_jar_intermediates/android.jar
development/build/sdk.atree:168: couldn't locate source file: /home/peslerbe/androidSdk/rk3399-android-8.1/target/common/obj/PACKAGING/android_jar_intermediates/android-stubs-src.jar
development/build/sdk.atree:171: couldn't locate source file: /home/peslerbe/androidSdk/rk3399-android-8.1/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy_intermediates/javalib.jar
development/build/sdk.atree:173: couldn't locate source file: /home/peslerbe/androidSdk/rk3399-android-8.1/target/common/obj/JAVA_LIBRARIES/android_uiautomator_intermediates/javalib.jar
development/build/sdk.atree:222: couldn't locate source file: /home/peslerbe/androidSdk/rk3399-android-8.1/host/common/obj/PACKAGING/sdk-fonts_intermediates
development/build/sdk.atree:238: couldn't locate source file: /home/peslerbe/androidSdk/rk3399-android-8.1/target/product/nanopc-t4/system.img
development/build/sdk.atree:239: couldn't locate source file: /home/peslerbe/androidSdk/rk3399-android-8.1/target/product/nanopc-t4/vendor.img
development/build/sdk.atree:252: couldn't locate source file: /home/peslerbe/androidSdk/rk3399-android-8.1/host/linux-x86/development/sdk/doc_source.properties

but when I check all paths, some file are present, with content and correct permissions/rights:
-rw-rw-r-- 1 peslerbe peslerbe 10450 Jul 19 12:10 ###FILE_NAME###

Does anyone has got an idea about the source of this error ?

Thanks,
Best regards,

Nicolas




Dan Willemsen

unread,
Jul 19, 2019, 2:28:33 PM7/19/19
to Android Building
Building the sdk generally requires using the 'sdk' product when calling lunch -- it looks like that's why you were building a bunch of tools independently.

I wouldn't be surprised if the sdk generation code didn't support OUT_DIR(/OUT_DIR_COMMON_BASE) that was anything other than "out".

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/33628644-4aba-4adf-891a-7089b6bab113%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages