2

I am trying to debug my android application having some native(c++) code using ndk-gdb in eclipse.It seems that by gdb server starts successfully from command line and is taking commands. But in eclipse it is showing this error : Error while obtaining file from device com.android.ddmlib.SyncException: Writing local file failed

Any one help me please.

Fayaz Ali
  • 61
  • 1
  • 6
  • I encounter the same problem. Did you eventually found a solution? – vcattin Jul 02 '14 at 10:23
  • possible duplicate of [Cannot debug android native code built on android library on eclipse](http://stackoverflow.com/questions/23887892/cannot-debug-android-native-code-built-on-android-library-on-eclipse) – CAMOBAP Dec 01 '14 at 09:43

2 Answers2

3

It seems that the framework for debugging requires an obj/local/armeabi folder.

If you open the launch file for native debugging, .metadata/.plugins/org.ecipse.debug.core/.launches/*.launch, you'll see a reference in that xml file:

<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="/projectroot/obj/local/armeabi/app_process"/>

Once I created this folder on disk this error subsided, and I was able to debug. There may be a more correct way to fix this, but I simply decided it was simple enough to create this folder.

Shawn
  • 430
  • 3
  • 7
1

This question seems similar. Try some of the answers shown and see if they help.

Community
  • 1
  • 1
Steven Huang
  • 490
  • 4
  • 16