Visual Studio 2019, Android and CMake - android

I'm trying to create a Visual Studio 2019 solution of my existing C++ project (.so) so I can have access to native debugging on Android.
I already installed the Cross-platform mobile development tools and the sample projects seem to work fine.
So my conclusion is that Visual Studio 2019 indeed supports what I'm trying to achieve.
However, the problem happens when I try to use CMake to create a Visual Studio solution for Android. I get this error:
CMAKE_SYSTEM_NAME is 'Android' but 'NVIDIA Nsight Tegra Visual Edition' is not installed.
And it's true, I don't have "NVIDIA Nsight Tegra" installed, but the sample projects from VS worked without it so I'm assuming that the NVIDIA tool is not really needed.
Searching the web I came across this old post which said we have to use a custom CMake version, but again, the sample projects are not using any custom CMake (i think).
Any tips on how I should move from here?

Related

Native Activity App (Android) is missing in Visual Studio community 2022

I am trying to build a Native App for android with C++, but the only option I see is Basic Application (Android, Gradle) which creates a Java project.
I am following this tutorial, https://www.youtube.com/watch?v=3SJmf1HsVQU
The Native App that appears in the tutorial is not available in my Visual Studio 2022 Community,
Is this not available in community edition, or did I miss installing some component?
My VS Setup
The Native App was provided in Visual Studio before version 17.4.
And it has been removed since
release note:
Android SDK update Ant scripts have been removed, so users will no
longer see Ant-based templates in the New Project dialog. For help
migrating from Ant templates to Gradle templates, please see:
Migrating Builds From Apache Ant (gradle.org)

Setting up Android SDK in IntelliJ

I am trying to set up JetBrains' IntelliJ IDEA for Android Development. I have "inherited" a relatively large Android project from one of my colleagues.
I am running into problems whenever I try to build the app in the IDE. I have tried to install the Android SDK into intelliJ but without any luck.
My problem seems to be that IntelliJ cannot locate the SDK correctly.
I have followed these steps, but with no result:
Answer

Error in Eclipse Neon 2 in workspace

I have installed Android sdk and eclipse neon .2 for android developers. When I create android project and click finish, it gives this error. Can anyone suggest what's wrong?
The Android SDK has not been setup properly inside your Eclipse environment.
Reinstalling using recommended settings might resolve this issue.
Android Studio 2.0 is the new recommended IDE for developing Android apps and is extremely easy to setup.
Link: https://developer.android.com/studio/install.html

Target Platform is disabled in Xamarin Studio?

When creating a new project the target platform (Android) is already greyed out so can't proceed.
I have already linked SDK and NDK.
The Android check box will be disabled if you do not have Xamarin.Android installed or the Android addin is disabled in Xamarin Studio.
If you look in the log file (Help - Open Log Directory) it should provide more information.
Run the installer again and check what you want: Xamarin.Android and Xamarin.iOS
The issue has been reported several times in several forums: I have searched all of them and found no answer that works in May 2017, now that Xamarin Universal Installer no longer is provided by Xamarin.com, only Visual Studio. Most answers I've depends on two things: one, that one loads the Android sdk, ndk and Java jdk and links up to them in the Tools Project Option -> Android. While an appropriate answer, this doesn't seem to fix the issue for those who have had it on a PC, like myself. I have also Visual Studio installed but wanted to see the Xamarin Studio. The other parts of the answers I've seen mention the use of Xamarin Universal Installer. Only manual install Xamarin Studio (via its .msi files) are now possible given the Xamarin.com offers.
However, even uninstalling and reinstalling Xamarin Studio--as was recommended in a forum--didn't seem to solve this issue. Normal uninstall via Control Panel of Xamarin Studio doesn't delete the local user info. This is, moreover, shared with Visual Studio. As far as I can see, it is the mixture between Visual Studio in its newest forms, and the Xamarin Studio in its earlier forms, on one and the same Windows PC that causes some configuration issues.
And so the solution seems to be that if you want Xamarin Studio to work on a PC with target platform Android, you should start with a clean PC and begin on the Android sdk and ndk, and the Java jdk, then install Xamarin Studio without installing Visual Studio first. Hopefully though the Visual Studio should be good enough.
Just click on restart button. From Tools > Add Custom Tools > SDK Locations in visual studio.

What's the Eclipse Andmore Project?

Android Studio was announced in May 2013 and maintained by Android technology team since then. It is based on the IntelliJ IDEA Community Edition, added features that are designed specifically for Android development and cooperated with JetBrains, creators of one of the most advanced Java IDEs available today. As the official Android IDE, Android Studio gives us access to a powerful and comprehensive suite of tools to evolve our app across Android platforms, whether it's on the phone, wrist, car or TV.
As Android Studio arises, Eclipse, the powerful open-sourced IDE, worked with Android Developer Tools (ADT) to create gorgeous Android apps, begins to fall. Now that when Android M Preview was released, Eclipse couldn't work with the latest Android SDK whose structure was changed but Eclipse couldn't adapt it.
It is said that development and official support for the ADT in Eclipse will be ended at the end of the year, just to make way for focus on all of their efforts on making Android Studio better and faster. But Eclipse isn't abandoned completely for Android Development. Android tools inside it continues to live. They created a new project called Andmore - Eclipse Android Tooling.
So, what is Andmore? Now that ADT in Eclipse is not supported any more, they create this Eclipse Android Tooling for what? After Eclipse don't work for Android development at all, developers would switch to Android Studio, the official IDE, I think, will someone prefer Andmore in Eclipse? If so, what are advantages of Andmore in Eclipse which force them to choose it?
Any tips will be appreciated. Thanks in advance.
The purpose of Andmore is to provide Android Eclipse tooling without having to go through multiple steps.
The technology development involves integrating and refactoring the Google ADT plugins as necessary to work with the project. Similarly, the former MOTODEV plugins have components that can be integrated into the project.
Andmore includes:
JDT for Android Java applications.
CDT for C/C++ shared libraries.
Gradle tooling (details TBD)
Maven Build support via the M2E-Android Eclipse Plugin.
Ant support via the built in Eclipse support for ANT.
A fork of Google's ADT (Android Development Tools) plugins for
Eclipse.These are maintained separately from Google's code line at AOSP, which will not be updated with any regularity.
The former MOTODEV Studio Plugins (now part of the Android Open
Source Project) upgraded to work with ADT.
A p2 repository and product build using tycho.
Mylyn Reviews for Gerrit Review integration.
EGit for source code management.
GitHub Plugin from EGit for better collaboration with GitHub
projects.
In addition to components, Andmore will produce an EPP package.
The source code for Andmore is maintained on Github. To contribute, please make sure you have a signed CLA with the Eclipse Foundation on file, and fork the repository. Pull requests and will be reviewed by an existing committer before being merged.
Source repository can be found at https://github.com/eclipse/andmore/

Categories

Resources