This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Setup & Debug Android Native code with DS-5 pro v5.11

Note: This was originally posted on 19th December 2012 at http://forums.arm.com

Hi, while setup  & debug Android native code with DS-5 pro v5.11, some issues occurred:

============================================================================================================================
Step1. Setting up the Android tools for use with DS-5
============================================================================================================================
Due to the chapter "Setting up the Android tools for use with DS-5" in   ARM DS-5 tutorials , we setup Android software tools:
Android SDK: adt-bundle-windows-x86 and required SDK platforms
Android NDK: android-ndk-r8c-windows
Cygwin:   1.7.11
DS-5 Pro: v5.11

There are 2 vague configuration in setting up Procedure:

Issue1:  Which PATH environment variable should be updated?  MS Windows or Cygwin .bashrc or others?
  
Issue2: Are there any  requirements  about compatible revision between  DS-5, Android SDK, Andoid NDK?


============================================================================================================================
Step 2: Loading the hello-neon application on to an Android target
============================================================================================================================
Due to the chapter " Loading the hello-neon application on to an Android target" in   ARM DS-5 tutorials .
We imported HelloNeon project into Java workplace and generated libhelloneon.so,
but HelloNeon.apk could NOT be generate  with operation "Build Project".
However, HelloNeon.apk could be generate  with operation "Run As Android Application". and it works well on Emulator 5554:android 2.2.

Issue3: Are there any special settings to generate APK while "Build Project"?

When setting " Debug Configurations",  Error message was shown:
"Configuration for connection type 'gdbserver' is not valid - An Android device must be selected. If none are available then start one using AVD."

Since NO APK has been generated, Another Error message was showned (Snap8.jpg):


Issue 4: How to set "Debug Configurations"  and lauch Debug operation correctly?

Have Any talents Setup & Debug Android Native code with DS-5 pro v5.11 sucessfully?
Any comments/suggestions to resolve the above issues?
Thanks very much!
Parents
  • Note: This was originally posted on 2nd January 2013 at http://forums.arm.com

    Sorry for late reply:

    What messages/errors are you getting?

    There is not any errors, but no APK has been generated, here posts the message:

    [2013-01-02 10:17:46 - HelloNeon] Refreshing resource folders.
    [2013-01-02 10:17:46 - HelloNeon] Starting full Pre Compiler.
    [2013-01-02 10:17:46 - HelloNeon] Removing generated java classes.
    [2013-01-02 10:17:46 - HelloNeon] Generating BuildConfig.java...
    [2013-01-02 10:17:46 - HelloNeon] Preparing generated java files for update/creation.
    [2013-01-02 10:17:46 - HelloNeon] D:\AndroidDevKits\adt-bundle-sdk-r21\sdk\platform-tools\aapt.exe package -m -v -J D:\AndroidDevKits\android-ndk-r8c\samples\hello-neon\gen -M D:\AndroidDevKits\android-ndk-r8c\samples\hello-neon\AndroidManifest.xml -S D:\AndroidDevKits\android-ndk-r8c\samples\hello-neon\res -I D:\AndroidDevKits\adt-bundle-sdk-r21\sdk\platforms\android-8\android.jar
    [2013-01-02 10:17:46 - HelloNeon] Configurations:
    [2013-01-02 10:17:46 - HelloNeon]  (default)
    [2013-01-02 10:17:46 - HelloNeon]
    [2013-01-02 10:17:46 - HelloNeon] Files:
    [2013-01-02 10:17:46 - HelloNeon]   values\strings.xml
    [2013-01-02 10:17:46 - HelloNeon]  Src: () D:\AndroidDevKits\android-ndk-r8c\samples\hello-neon\res\values\strings.xml
    [2013-01-02 10:17:46 - HelloNeon]   AndroidManifest.xml
    [2013-01-02 10:17:46 - HelloNeon]  Src: () D:\AndroidDevKits\android-ndk-r8c\samples\hello-neon\AndroidManifest.xml
    [2013-01-02 10:17:46 - HelloNeon]
    [2013-01-02 10:17:46 - HelloNeon] Resource Dirs:
    [2013-01-02 10:17:46 - HelloNeon]   Type drawable
    [2013-01-02 10:17:46 - HelloNeon]   Type layout
    [2013-01-02 10:17:46 - HelloNeon]   Type values
    [2013-01-02 10:17:46 - HelloNeon]  values\strings.xml
    [2013-01-02 10:17:46 - HelloNeon]    Src: () D:\AndroidDevKits\android-ndk-r8c\samples\hello-neon\res\values\strings.xml
    [2013-01-02 10:17:46 - HelloNeon] Including resources from package: D:\AndroidDevKits\adt-bundle-sdk-r21\sdk\platforms\android-8\android.jar
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for drawable
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for layout
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for anim
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for animator
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for interpolator
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for xml
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for raw
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for color
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for menu
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for mipmap
    [2013-01-02 10:17:46 - HelloNeon]   Writing symbols for class R.
    [2013-01-02 10:17:46 - HelloNeon] Starting full Package build.
    [2013-01-02 10:17:46 - HelloNeon] Skipping over Post Compiler.

    Are you trying to use a real Android target or a virtual one?

    We are just trying to run HelloNeon on a virtual target (emulator  built in Android SDK)

    thanks for your help!


    Are you still having these problems?  The most recent version of DS-5 is v5.13 -- I don't know if it addresses the problems you're having, but it is probably a better place to start from.


    The DS-5 instructions are referring to the Windows PATH.  DS-5 doesn't install or rely on Cygwin.  If you've installed it and it is influencing Eclipse then it may be necessarily to ensure things about it's path, too.



    What messages/errors are you getting?



    Are you trying to use a real Android target or a virtual one?
Reply
  • Note: This was originally posted on 2nd January 2013 at http://forums.arm.com

    Sorry for late reply:

    What messages/errors are you getting?

    There is not any errors, but no APK has been generated, here posts the message:

    [2013-01-02 10:17:46 - HelloNeon] Refreshing resource folders.
    [2013-01-02 10:17:46 - HelloNeon] Starting full Pre Compiler.
    [2013-01-02 10:17:46 - HelloNeon] Removing generated java classes.
    [2013-01-02 10:17:46 - HelloNeon] Generating BuildConfig.java...
    [2013-01-02 10:17:46 - HelloNeon] Preparing generated java files for update/creation.
    [2013-01-02 10:17:46 - HelloNeon] D:\AndroidDevKits\adt-bundle-sdk-r21\sdk\platform-tools\aapt.exe package -m -v -J D:\AndroidDevKits\android-ndk-r8c\samples\hello-neon\gen -M D:\AndroidDevKits\android-ndk-r8c\samples\hello-neon\AndroidManifest.xml -S D:\AndroidDevKits\android-ndk-r8c\samples\hello-neon\res -I D:\AndroidDevKits\adt-bundle-sdk-r21\sdk\platforms\android-8\android.jar
    [2013-01-02 10:17:46 - HelloNeon] Configurations:
    [2013-01-02 10:17:46 - HelloNeon]  (default)
    [2013-01-02 10:17:46 - HelloNeon]
    [2013-01-02 10:17:46 - HelloNeon] Files:
    [2013-01-02 10:17:46 - HelloNeon]   values\strings.xml
    [2013-01-02 10:17:46 - HelloNeon]  Src: () D:\AndroidDevKits\android-ndk-r8c\samples\hello-neon\res\values\strings.xml
    [2013-01-02 10:17:46 - HelloNeon]   AndroidManifest.xml
    [2013-01-02 10:17:46 - HelloNeon]  Src: () D:\AndroidDevKits\android-ndk-r8c\samples\hello-neon\AndroidManifest.xml
    [2013-01-02 10:17:46 - HelloNeon]
    [2013-01-02 10:17:46 - HelloNeon] Resource Dirs:
    [2013-01-02 10:17:46 - HelloNeon]   Type drawable
    [2013-01-02 10:17:46 - HelloNeon]   Type layout
    [2013-01-02 10:17:46 - HelloNeon]   Type values
    [2013-01-02 10:17:46 - HelloNeon]  values\strings.xml
    [2013-01-02 10:17:46 - HelloNeon]    Src: () D:\AndroidDevKits\android-ndk-r8c\samples\hello-neon\res\values\strings.xml
    [2013-01-02 10:17:46 - HelloNeon] Including resources from package: D:\AndroidDevKits\adt-bundle-sdk-r21\sdk\platforms\android-8\android.jar
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for drawable
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for layout
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for anim
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for animator
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for interpolator
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for xml
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for raw
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for color
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for menu
    [2013-01-02 10:17:46 - HelloNeon] applyFileOverlay for mipmap
    [2013-01-02 10:17:46 - HelloNeon]   Writing symbols for class R.
    [2013-01-02 10:17:46 - HelloNeon] Starting full Package build.
    [2013-01-02 10:17:46 - HelloNeon] Skipping over Post Compiler.

    Are you trying to use a real Android target or a virtual one?

    We are just trying to run HelloNeon on a virtual target (emulator  built in Android SDK)

    thanks for your help!


    Are you still having these problems?  The most recent version of DS-5 is v5.13 -- I don't know if it addresses the problems you're having, but it is probably a better place to start from.


    The DS-5 instructions are referring to the Windows PATH.  DS-5 doesn't install or rely on Cygwin.  If you've installed it and it is influencing Eclipse then it may be necessarily to ensure things about it's path, too.



    What messages/errors are you getting?



    Are you trying to use a real Android target or a virtual one?
Children
No data