I read Timur's post and a couple of others about the problems coming up with Android Studio while trying to build a simple project.
The project compiles fine on both Xcode and Visual Studio 2013 for Mac OS X and Windows 10 respectively, but cannot build for Android!
I updated to Android Studio 2.1, downloaded the latest NDK etc..
I get the same error running AS on both Mac and Win "Error:(1, 0) Plugin with id 'com.android.model.application' not found."
What I have done is to change the dependecies in the build.gradle to: dependencies { classpath 'com.android.tools.build:gradle:2.1.0-alpha1' } as Android Studio promted me to do,
and also in the gradle-wrapper.properties I tried changing the distributionUrl to the latest "gradle-2.12-all.zip".
What does that mean? I have no experience with AS, what should I look for?
For JUCE projects, never change any build settings in Android Studio if it prompts you to, this will often completely break the project (this seems to have happened to you). Instead, manage all your build settings in Introjucer. Then, re-save the project in Introjucer, and re-import it in Android Studio.
Please try re-saving and re-importing, and not clicking anything in Android Studio afterwards (just ignore all warnings). Hope this works.
Yes. Before you re-save, you need to re-compile the Introjucer itself (using the newest tip of JUCE from github) and then re-save your project with that new Introjucer.
According to this thread: http://www.juce.com/forum/topic/android-activity-class-names-underscores-and-hair-loss
you should not have an undescore on the project name because it causes a fatal error when building your app, which I experienced.
No underscore and everything was fine.