Can someone tell me how to get Android Studio 0.5.x to correctly import and build a PhoneGap project?
I have successfully installed JDK SE 1.8.0, Ant 1.9.3, PhoneGap 3.4.0 and Android Studio 0.5.4.
JAVA_HOME , ANT_HOME , ANDROID_HOME set correctly, PATH been expanded to include %JAVA_HOME%\bin , as well as %ANDROID_HOME%\tools and %ANDROID_HOME%\platform-tools .
I can create a hello-world PhoneGap project as described here: http://phonegap.com/install/
A hello-world vanilla project that will build and run with configured AVD:
phonegap run android --emulator
However, when I try to import a project according to this tutorial in Android Studio 0.5.4 , it will not compile.
Firstly, import in 0.5.4 is completely different from what is shown on the linked page, there are none of the options presented (you can choose only the folder from which you want to import, the destination and whether to replace banks with dependencies, when possible "/" Replace library sources with dependencies, when possible "and" Create module names Gradle-style (camelCase) ", all selected by default).
Android Studio shows errors like:
Error:(19, 26) error: package android.annotation does not exist Error:(26, 16) error: package org.json does not exist Error:(30, 23) error: package android.content does not exist
However, I see < Android API 19 Platform > and < JDK > in the External Libraries section with android.jar and annotations.jar and, for example, android.annotation .
I tried to install minSdkVersion 19 for the helloWorld project, but that doesnโt fix anything.