It doesn't look like the sdk is compatible with TARGET_BUILD_TYPE=debug. That config doesn't actually change how we build almost anything, so you should be able to drop it. Depending on what type of debugging you want to do, you may be able to pick up the symbols in out/target/product/generic/symbols, or make changes to the build files that you care about.
- Dan On Mon, Feb 20, 2017 at 8:28 AM Xie Wu <[email protected]> wrote: > Hi, the error message is below: > > SDK: warning: including GNU target > out/debug/target/product/generic/system/lib/libexif.so > SDK: warning: including GNU target > out/debug/target/product/generic/system/lib/libiprouteutil.so > SDK: warning: including GNU target > out/debug/target/product/generic/system/lib/libnetlink.so > SDK: warning: including GNU target > out/debug/target/product/generic/system/lib/libnl.so > development/build/sdk.atree:161: couldn't locate source file: > out/target/common/obj/PACKAGING/android_jar_intermediates/android.jar > development/build/sdk.atree:162: couldn't locate source file: > out/target/common/obj/PACKAGING/android_jar_intermediates/android-stubs-src.jar > development/build/sdk.atree:165: couldn't locate source file: > out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy_intermediates/javalib.jar > development/build/sdk.atree:167: couldn't locate source file: > out/target/common/obj/JAVA_LIBRARIES/android_uiautomator_intermediates/javalib.jar > development/build/sdk.atree:446: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-annotations_intermediates/android-support-annotations.jar > development/build/sdk.atree:448: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v4_intermediates/android-support-v4.jar > development/build/sdk.atree:457: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v13_intermediates/android-support-v13.jar > development/build/sdk.atree:468: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v7-gridlayout_intermediates/android-support-v7-gridlayout.jar > development/build/sdk.atree:478: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v7-appcompat_intermediates/android-support-v7-appcompat.jar > development/build/sdk.atree:479: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v4_intermediates/android-support-v4.jar > development/build/sdk.atree:488: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-multidex_intermediates/android-support-multidex.jar > development/build/sdk.atree:489: couldn't locate source file: > out/target/common/obj/JAVA_LIBRARIES/android-support-multidex_intermediates/classes.jack > development/build/sdk.atree:498: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-multidex-instrumentation_intermediates/android-support-multidex-instrumentation.jar > development/build/sdk.atree:499: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-multidex_intermediates/android-support-multidex.jar > development/build/sdk.atree:500: couldn't locate source file: > out/target/common/obj/JAVA_LIBRARIES/android-support-multidex_intermediates/classes.jack > development/build/sdk.atree:509: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v7-mediarouter_intermediates/android-support-v7-mediarouter.jar > development/build/sdk.atree:518: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v7-palette_intermediates/android-support-v7-palette.jar > development/build/sdk.atree:523: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v7-cardview_intermediates/android-support-v7-cardview.jar > development/build/sdk.atree:530: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v7-recyclerview_intermediates/android-support-v7-recyclerview.jar > development/build/sdk.atree:539: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v17-leanback_intermediates/android-support-v17-leanback.jar > development/build/sdk.atree:545: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-design_intermediates/android-support-design.jar > development/build/sdk.atree:550: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-percent_intermediates/android-support-percent.jar > development/build/sdk.atree:553: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-customtabs_intermediates/android-support-customtabs.jar > development/build/sdk.atree:557: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v7-preference_intermediates/android-support-v7-preference.jar > development/build/sdk.atree:561: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v14-preference_intermediates/android-support-v14-preference.jar > development/build/sdk.atree:565: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-v17-preference-leanback_intermediates/android-support-v17-preference-leanback.jar > development/build/sdk.atree:568: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-recommendation_intermediates/android-support-recommendation.jar > development/build/sdk.atree:570: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-vectordrawable_intermediates/android-support-vectordrawable.jar > development/build/sdk.atree:572: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-animatedvectordrawable_intermediates/android-support-animatedvectordrawable.jar > development/build/sdk.atree:576: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-transition_intermediates/android-support-transition.jar > development/build/sdk.atree:579: couldn't locate source file: > out/target/common/obj/PACKAGING/android-support-documents-archive_intermediates/android-support-documents-archive.jar > ninja: build stopped: subcommand failed. > build/core/ninja.mk:84: recipe for target 'ninja_wrapper' failed > make: *** [ninja_wrapper] Error 1 > > #### make failed to build some targets (01:31 (mm:ss)) #### > > > > I use the following command: > > lunch sdk-eng > TARGET_BUILD_TYPE=debug make sdk -j4 > > > My env: > > ============================================ > PLATFORM_VERSION_CODENAME=REL > PLATFORM_VERSION=7.1.1 > TARGET_PRODUCT=sdk > TARGET_BUILD_VARIANT=eng > TARGET_BUILD_TYPE=debug > TARGET_BUILD_APPS= > TARGET_ARCH=arm > TARGET_ARCH_VARIANT=armv7-a > TARGET_CPU_VARIANT=generic > TARGET_2ND_ARCH= > TARGET_2ND_ARCH_VARIANT= > TARGET_2ND_CPU_VARIANT= > HOST_ARCH=x86_64 > HOST_2ND_ARCH=x86 > HOST_OS=linux > HOST_OS_EXTRA=Linux-4.8.0-37-generic-x86_64-with-Ubuntu-16.10-yakkety > HOST_CROSS_OS=windows > HOST_CROSS_ARCH=x86 > HOST_CROSS_2ND_ARCH=x86_64 > HOST_BUILD_TYPE=release > BUILD_ID=NYC > OUT_DIR=out > AUX_OS_VARIANT_LIST= > ============================================ > > > > I have read this post > <https://groups.google.com/forum/#!topic/android-building/kePECtbvGlE>, so > this may be the wrong configuration? but I want a debug version of > sdk, because i want to debug it. > > What should I do? > > thank. > > > > > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
