Found debuggable flag: false无法调试ndk,求救!

布鲁克零三四四 2016-04-16 08:49:59
ndk-gdb.py提示


D:\test\proj.android>ndk-gdb.py --adb=D:\DevTools\adt-bundle-windows-x86_64-20140702\sdk\platform-to
ols\adb.exe --force --nowait --verbose
Android NDK installation path: D:/DevTools/android-ndk-r10d
Using specific adb command: D:\DevTools\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.ex
e
ADB version found: Android Debug Bridge version 1.0.32
Using ADB flags:
Using auto-detected project path: .
Found package name: abc.com
ABIs targetted by application: armeabi
Device API Level: 18
Device CPU ABIs: armeabi-v7a armeabi
Compatible device ABI: armeabi
Using gdb setup init: ./libs/armeabi/gdb.setup
Using toolchain prefix: D:/DevTools/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/w
indows-x86_64/bin/arm-linux-androideabi-
Using app out directory: ./obj/local/armeabi
Found debuggable flag: false
Found gdbserver under libs/armeabi, assuming app was built with NDK_DEBUG=1
Found device gdbserver: /data/data/abc.com/lib/gdbserver
ERROR: Could not extract package's data directory. Are you sure that
your installed application is debuggable?


下满是apk信息:


D:\test\proj.android>aapt.exe list -v -a ..\bin\debug\android\test-debug.apk
Archive: ..\bin\debug\android\test-debug.apk
Length Method Size Ratio Offset Date Time CRC-32 Name
-------- ------ ------- ----- ------- ---- ---- ------ ----
2864 Deflate 1030 64% 0 04-16-16 08:17 531e9996 AndroidManifest.xml
3596 Stored 3596 0% 1099 04-16-16 08:17 c285db54 assets/CloseNormal.png
2810 Stored 2810 0% 4748 04-16-16 08:17 871dab54 assets/CloseSelected.png
37864 Stored 37864 0% 7614 04-16-16 08:17 ef4512b9 assets/HelloWorld.png
25776 Deflate 16405 36% 45532 04-16-16 08:17 a50da465 assets/fonts/Marker Felt.ttf
778552 Deflate 429148 45% 62011 04-16-16 08:17 9a6eb23a assets/fonts/arial.ttf
9495 Stored 9495 0% 491227 04-16-16 08:17 b2b0307f res/drawable-hdpi-v4/icon.png
2578 Stored 2578 0% 500783 04-16-16 08:17 35cbc637 res/drawable-ldpi-v4/icon.png
4873 Stored 4873 0% 503422 04-16-16 08:17 39e4927b res/drawable-mdpi-v4/icon.png
996 Stored 996 0% 508357 04-16-16 08:17 eb8260ae resources.arsc
332548 Deflate 104301 69% 509400 04-16-16 08:17 ba725ee6 classes.dex
393604 Deflate 219005 44% 613758 09-16-14 14:57 b37bfc59 lib/armeabi/gdbserver
10359964 Deflate 2723430 74% 832830 04-16-16 08:16 5dc536f7 lib/armeabi/libcocos2dcpp.so
1038 Deflate 549 47% 3556334 04-16-16 08:17 7ece0527 META-INF/MANIFEST.MF
1091 Deflate 579 47% 3556949 04-16-16 08:17 ec4a86ad META-INF/CERT.SF
1203 Deflate 1054 12% 3557590 04-16-16 08:17 da1d8c97 META-INF/CERT.RSA
-------- ------- --- -------
11958852 3557713 70% 16 files

Resource table:
Package Groups (1)
Package Group 0 id=0x7f packageCount=1 name=abc.com
Package 0 id=0x7f name=abc.com
type 1 configCount=3 entryCount=1
spec resource 0x7f020000 abc.com:drawable/icon: flags=0x00000100
config ldpi-v4:
resource 0x7f020000 abc.com:drawable/icon: t=0x03 d=0x00000000 (s=0x0008 r=0x00)
config mdpi-v4:
resource 0x7f020000 abc.com:drawable/icon: t=0x03 d=0x00000001 (s=0x0008 r=0x00)
config hdpi-v4:
resource 0x7f020000 abc.com:drawable/icon: t=0x03 d=0x00000002 (s=0x0008 r=0x00)
type 2 configCount=1 entryCount=1
spec resource 0x7f030000 abc.com:string/app_name: flags=0x00000000
config (default):
resource 0x7f030000 abc.com:string/app_name: t=0x03 d=0x00000003 (s=0x0008 r=0x00)

Android manifest:
N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0" (Raw: "1.0")
A: android:installLocation(0x010102b7)=(type 0x10)0x0
A: package="abc.com" (Raw: "abc.com")
A: platformBuildVersionCode=(type 0x10)0x12 (Raw: "18")
A: platformBuildVersionName="4.3.1-1425645" (Raw: "4.3.1-1425645")
E: uses-sdk (line=9)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x12
E: uses-feature (line=10)
A: android:glEsVersion(0x01010281)=(type 0x11)0x20000
E: application (line=12)
A: android:label(0x01010001)=@0x7f030000
A: android:icon(0x01010002)=@0x7f020000
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
E: meta-data (line=16)
A: android:name(0x01010003)="android.app.lib_name" (Raw: "android.app.lib_name")
A: android:value(0x01010024)="cocos2dcpp" (Raw: "cocos2dcpp")
E: activity (line=19)
A: android:theme(0x01010000)=@0x1030007
A: android:label(0x01010001)=@0x7f030000
A: android:name(0x01010003)="org.cocos2dx.cpp.AppActivity" (Raw: "org.cocos2dx.cpp.AppActivi
ty")
A: android:screenOrientation(0x0101001e)=(type 0x10)0x0
A: android:configChanges(0x0101001f)=(type 0x11)0x4a0
E: intent-filter (line=25)
E: action (line=26)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MA
IN")
E: category (line=27)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.cat
egory.LAUNCHER")
E: supports-screens (line=32)
A: android:anyDensity(0x0101026c)=(type 0x12)0xffffffff
A: android:smallScreens(0x01010284)=(type 0x12)0xffffffff
A: android:normalScreens(0x01010285)=(type 0x12)0xffffffff
A: android:largeScreens(0x01010286)=(type 0x12)0xffffffff
A: android:xlargeScreens(0x010102bf)=(type 0x12)0xffffffff
E: uses-permission (line=38)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")






下面是AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="abc.com"
android:debuggable="true"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="auto">

<uses-sdk android:minSdkVersion="18"/>
<uses-feature android:glEsVersion="0x00020000" />

<application android:label="@string/app_name"
android:icon="@drawable/icon">

<!-- Tell Cocos2dxActivity the name of our .so -->
<meta-data android:name="android.app.lib_name"
android:value="cocos2dcpp" />

<activity android:name="org.cocos2dx.cpp.AppActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:configChanges="orientation|keyboardHidden|screenSize">

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

<supports-screens android:anyDensity="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"/>

<uses-permission android:name="android.permission.INTERNET"/>
</manifest>







下面是安装脚本

cocos run -p android -m debug




下面是手机信息
...全文
134 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧