报错信息如下:
[ 45% 15/33] //prebuilts/misc/gdbserver:gdbserver strip gdbserver [arm]
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: prebuilts/misc/gdbserver/android-arm/gdbserver: no symbols
[ 51% 17/33] //prebuilts/misc/gdbserver:gdbserver strip gdbserver64
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-nm: prebuilts/misc/gdbserver/android-arm64/gdbserver64: no symbols
该报错事google已知bug之一,解决方案: 点这里,需要科学上网 截个图: (传不上来,算了)
手动解决办法: 在文件 /gdbserver/Android.bp 中添加如下代码:
@@ -8,6 +8,11 @@
},
},
+ // These are already stripped, and restripping them just issues diagnostics.
+ strip: {
+ none: true,
+ },
target: {
android_arm: {
srcs: ["android-arm/gdbserver"],
找到正确位置添加带+行代码即可
|