Could not extract package's data directory. Are you sure that your installed application is debuggab

ERROR: Could not extract package's data directory. Are you sure that your installed application is debuggable?

ndk-gdb,调试native code,出现以下错误:


如果确定debuggale已经设置为true,,那么有可能是因为应用安装到来的sd卡,,而sd卡上面那个路径是没有操作权限。。方法保证游戏安装到rom上:

internalOnly

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
         
package="string"
         
android:sharedUserId="string"
         
android:sharedUserLabel="string resource"
         
android:versionCode="integer"
         
android:versionName="string"
         
android:installLocation=["auto" | "internalOnly" | "preferExternal"] >
    . . .
</manifest>



有时候不能ndk-gdb,,就换成没有root的机器试试。。

猜你喜欢

转载自blog.csdn.net/xingxiliang/article/details/46325915