can not Debug Android app

Sysprogs forums Forums VisualGDB can not Debug Android app

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #786
    Anonymous
    Participant

    Hi,
    I want test an Android NDK Example with VisualGDB on my Galaxy Note 3 (Android 4.4.2).
    But get the error:
    GDB Server log:
    run-as: Package ‘com.example.nativeaudio’ is unknown
    GDB log:
    -gdb-set solib-search-path C:/Users/Peter/AppData/Local/VisualGDB/AndroidBinaryCache/242c5076;C:/Users/Peter/documents/visualstudio2013/Projects/NativeAudioTest/NativeAudioTest/obj/local/armeabi
    ^done
    -target-select remote :5039
    ^error,msg=”Remote communication error. Target disconnected.: No error.”

    From visualgdb.com/KB/?ProblemID=nopkg I solved:
    – Move line ‘com.example.nativeaudio 10317 1 /data/data/com.example.nativeaudio default 3003’ to top of packages.list
    – change permission of /data/system/packages.list from rw-rw—- to rw-rw-r–

    I can read it wih: adb pull /data/system/packages.list

    If I start debugging, the app starts on the device and I can use it.
    But Visual Studio can not connect for debugging

    How can I debug on an real Android device?
    The simple ‘Hello World’ example I can debug in the emulator.

    Peter

    #3060
    ket
    Participant

    Hi,

    Our knowledge base article at http://visualgdb.com/KB/?ProblemID=nopkg contains the description of two problems about Android device images. Have you checked for the second problem?
    As the device you are using is a Galaxy device it likely has the problem with its device image. In that case please try updating your Android device, try the fixes suggested in the official Google bug thread or use another Android device for debugging.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.