Sysprogs forums › Forums › VisualGDB › Cannot debug Android executable on Nexus 5X
- This topic has 4 replies, 2 voices, and was last updated 6 years, 9 months ago by victorpsbg.
-
AuthorPosts
-
July 15, 2017 at 13:59 #11716victorpsbgParticipant
Greetings,
I have a fresh VisualGDB, Android SDK and Android NDK installation. The only toolchain that shows up is 4.9. When I run the Android Device Compatibility Center, I see that my device, a Nexus 5X, shows up as Platform version 25. The NDK version, strangely, shows up as 0. When I run the test I get an immediate build failed message with the following log:
VisualGDB: Run “C:\android-sdk\ndk-bundle\ndk-build.cmd NDK_DEBUG=1 APP_PLATFORM=android-25” in directory “C:\Users\Admin\AppData\Local\Temp\SysprogsAndroidTest-12332\4.9” on local computer
Android NDK: APP_PLATFORM set to unknown platform: android-25.
C:/android-sdk/ndk-bundle/build//../build/core/setup-app-platform.mk:115: *** Android NDK: Aborting . Stop.
————————————————————-
Command exited with code 2
Executable: C:\android-sdk\ndk-bundle\ndk-build.cmd
Arguments: NDK_DEBUG=1 APP_PLATFORM=android-25
Directory: C:\Users\Admin\AppData\Local\Temp\SysprogsAndroidTest-12332\4.9
VisualGDB: Error: Command-line action failed
Build failed: Build failedI am running Android 7.1.2 and I’m very confident this setup worked a year ago when I my phone had Android 6.
Thanks!
July 16, 2017 at 22:21 #11725supportKeymasterHi,
This looks like our bug. Please try this build: http://sysprogs.com/files/tmp/VisualGDB-5.3.3.1675.msi
July 17, 2017 at 12:57 #11727victorpsbgParticipantNew logs:
VisualGDB: Run “C:\android-sdk\ndk-bundle\ndk-build.cmd NDK_DEBUG=1 APP_PLATFORM=android-24” in directory “C:\Users\Admin\AppData\Local\Temp\SysprogsAndroidTest-20708\4.9” on local computer
Android NDK: WARNING: APP_PLATFORM android-24 is higher than android:minSdkVersion 3 in ./AndroidManifest.xml. NDK binaries will *not* be comptible with devices older than android-24. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.
[arm64-v8a] Gdbserver : [aarch64-linux-android-4.9] libs/arm64-v8a/gdbserver
[arm64-v8a] Gdbsetup : libs/arm64-v8a/gdb.setup
[arm64-v8a] Compile : first <= first.c
[arm64-v8a] Compile : first <= gdbserver_launcher.c
[arm64-v8a] SharedLibrary : libfirst.so
[arm64-v8a] Install : libfirst.so => libs/arm64-v8a/libfirst.so
[arm64-v8a] Compile : second <= second.c
[arm64-v8a] SharedLibrary : libsecond.so
[arm64-v8a] Install : libsecond.so => libs/arm64-v8a/libsecond.so
VisualGDB: build.xml/local.properties not found in C:\Users\Admin\AppData\Local\Temp\SysprogsAndroidTest-20708\4.9. Running “android update project” to generate it…
VisualGDB: Run “C:\android-sdk\tools\android.bat update project –path “C:\Users\Admin\AppData\Local\Temp\SysprogsAndroidTest-20708\4.9″” in directory “” on local computer
**************************************************************************
The “android” command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools\bin\sdkmanager.bat
and tools\bin\avdmanager.bat
**************************************************************************Invalid or unsupported command “update project –path “C:\Users\Admin\AppData\Local\Temp\SysprogsAndroidTest-20708\4.9″”
Supported commands are:
android list target
android list avd
android list device
android create avd
android move avd
android delete avd
android list sdk
android update sdk
————————————————————-
Command exited with code 1
Executable: C:\android-sdk\tools\android.bat
Arguments: update project –path “C:\Users\Admin\AppData\Local\Temp\SysprogsAndroidTest-20708\4.9”
Directory:
VisualGDB: Error: Command-line action failed
VisualGDB: Error: Default build failed. Trying to force target to android-14 . Please rebuild the project.
VisualGDB: Run “C:\android-sdk\tools\android.bat update project –path “C:\Users\Admin\AppData\Local\Temp\SysprogsAndroidTest-20708\4.9″ –target android-14” in directory “” on local computer
**************************************************************************
The “android” command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools\bin\sdkmanager.bat
and tools\bin\avdmanager.bat
**************************************************************************Invalid or unsupported command “update project –path “C:\Users\Admin\AppData\Local\Temp\SysprogsAndroidTest-20708\4.9″ –target android-14”
Supported commands are:
android list target
android list avd
android list device
android create avd
android move avd
android delete avd
android list sdk
android update sdk
————————————————————-
Command exited with code 1
Executable: C:\android-sdk\tools\android.bat
Arguments: update project –path “C:\Users\Admin\AppData\Local\Temp\SysprogsAndroidTest-20708\4.9” –target android-14
Directory:
VisualGDB: Error: Command-line action failed
Build failed: Build failed- This reply was modified 6 years, 9 months ago by victorpsbg.
July 19, 2017 at 05:19 #11759supportKeymasterHi,
This happens because the latest Android SDK removes support for Ant-based builds and only supports Gradle/CMake for C++ code.
As a workaround please try using this SDK: https://dl.google.com/android/repository/tools_r25.2.5-windows.zip
We will look into extending our new CMake project subsystem to Android projects after the final VisualGDB 5.3 release; until then please use the older SDK as a workaround.
July 23, 2017 at 12:09 #11804victorpsbgParticipantEDIT: Just saw your edited comment, testing.
EDIT2: Workaround confirmed, thanks for sharing! Looking forward to official CMake support 🙂
- This reply was modified 6 years, 9 months ago by victorpsbg.
- This reply was modified 6 years, 9 months ago by victorpsbg.
-
AuthorPosts
- You must be logged in to reply to this topic.