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

Viewed 4425

I'm using eclipse to debug my android app which has a c native code.

When i plug in my nexsus4 the ndk external debugging tool works.

when I plug my galaxy note2 it throws the following error when trying to attach to the device:

Android NDK installation path: /Users/eladb/MyWorkspace/android-ndk-r8b
Using specific adb command: /Users/eladb/MyWorkspace/sdk/platform-tools/adb
ADB version found: Android Debug Bridge version 1.0.31
Using ADB flags: 
Using auto-detected project path: .
Found package name: com.myPack
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: /Users/eladb/MyWorkspace/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/arm-linux-androideabi-
Using app out directory: ./obj/local/armeabi
Found debuggable flag: true
Found device gdbserver: /data/data/com.myPack/lib/gdbserver
ERROR: Could not extract package's data directory. Are you sure that
       your installed application is debuggable?

I have enabled developers options

and allowed device debugging via usb

it doesn't work for my samsung galaxy note2 (android 4.3) but works for nexsus4 (4.2)

I think this is a known issue?

but how to workarround this?

3 Answers
Related