Sysprogs forums › Forums › VisualGDB › Unable to get Android installed
- This topic has 8 replies, 2 voices, and was last updated 6 years, 10 months ago by support.
-
AuthorPosts
-
February 4, 2018 at 23:45 #19943Brian BeukenParticipant
Hi
I decided to do a small test project on Android, but when setting up a new project I had to install the latest Android, but it seems that I am unable to install to the directory.
Not really too sure why its locked, is there anything obvious I should have done or is there something else that might be locking it such as Visual Studio 2017 itself?
February 6, 2018 at 05:17 #19967supportKeymasterHi,
The latest versions of the Android tools are highly coupled with the Android Studio, so the recommended workflow is to install Android Studio, create a project and then import it into VisualGDB. This will enable the new Advanced CMake Project Subsystem, while letting you use Android Studio to debug Java code, so you will get the best from both worlds.
Please follow this tutorial for detailed instructions: https://visualgdb.com/tutorials/android/cmake/
February 7, 2018 at 14:26 #19974Brian BeukenParticipantThanks, I’ll try that.
February 7, 2018 at 16:21 #19976Brian BeukenParticipantWell after much swearing and stress I got Android Studio to install, and download multiple version of the SDK but attempting to import it threw up errors
I created the default app in Android studio and confirmed it built and ran (on emulator) quit, ad then fired up Visual Studio 2017 to import a project as described, but the import did not go smoothly
first it said it could not detect the compiler version from my make file, and I would need to specify build arguments e.g NDK_MODULE_PATH
I was forced to ignore and continue
The project then loads and creates itself, but the Toolchain test fails with Cannot query the value of TARGET_CXX please double check you setting
I again had to ignore as I have no way to set this during the import
The same error occurs again ignored
I then get to a project with my app but of course it does not build, giving me a range of issues,
incluing the NDK 64bit build bug, but when I look at the init.mk file the fix is already in place….
So…basically import does not seem to get me to a working build on VisualGDB
Can you offer any advice?
February 7, 2018 at 18:40 #19986supportKeymasterHi,
It looks like you are using an older VisualGDB build that does not support Android CMake projects. Please update to VisualGDB 5.3R8.
February 7, 2018 at 20:54 #19993Brian BeukenParticipantThats possible, I don’t update very often, I will update now and let you know.
thanks
February 8, 2018 at 03:05 #19999Brian BeukenParticipantnope, without doubt this has been the most painful 8 hours or so I’v eever experienced trying to get anything to work. Finally Android studio builds a working project, but then Visual GDB didn’t give me any option to import…… The attempt to manually locate the SDK/NDK is met with a lack of SDKManager.exe so it cant locate it, even though Android studio spent the best part of an hour installing the sdk and the preferred platforms.
What should be a simple, press of a Start a project for me, turned into a living hell…. I can’t work with this.
please let me know when you manage to actually get a project to start up so I can do a hello world in less than 5 mins, until the, I can’t take the stress.
- This reply was modified 6 years, 10 months ago by Brian Beuken.
- This reply was modified 6 years, 10 months ago by Brian Beuken.
February 8, 2018 at 03:22 #20002Brian BeukenParticipantit would appear that VisualGDB is only able to identify the Android SDK directory from the presence of SDK Manager.exe, but Android studio does not itself install that when it sets up its tools and platforms directory. So while it eventually is possible to set up Android Studio, Visual GDB can’t appear to do much with the project it imports as it can’t set up the Android SDK dirs without that SDK Manager.
I’m really quite lost and quite tired of this, it simply does not work as it should.
February 9, 2018 at 06:28 #20012supportKeymasterHi,
We are sorry about this. We have recently tested VisualGDB with the latest Android SDK and it managed to import the project as shown in our tutorial (you can simply copy-paste the SDK directory into VisualGDB Android Settings if the SDK Manager is missing from your installation).
If you encounter any further problems, please feel free to share the details and we will help you resolve them.
-
AuthorPosts
- You must be logged in to reply to this topic.