Android Studio Project Detected
Solution 1:
You need to download Android Studio and make sure the path is in the environment variable ANDROID_HOME. You will also need Java SE Development Kit 8u162 as well.
Android Studio https://developer.android.com/studio/index.html
Java http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Solution 2:
English:
i had the same problem. you can run $ cordova requirements
into your folder project to see dependences and solve them
Español:
Yo tenía el mismo problema. lo solucioné ejecutando el comando $ cordova requirements
dentro del directorio del proyecto, ahí me dí cuenta de que debía instalar y corregir.
Solution 3:
Please note I am not a programmer . I am ex Banker and entrepreneur now .I got really frustrated while setting cordova with all those errors for building android apps in windows. Though, I now understand this is the simplest cake, if you know the know-how. I love coding, so I am sharing the whole length of steps . You can figure out what step you are missing.
Step 1. Requirements :
(a)node js ( npm )-- install it
(b) Install cordova by command --> npm install -g cordova
(c) Install Phone gap by command --> npm install -g phonegap
(d) Ant apache ( download bin not source ) by visiting
https://ant.apache.org/bindownload.cgi . Keep this in C:/ Program files
- (e) JDK version 8 . you can down load previous version by visiting oracle.com
NOTE : Keep ( ANT ) and JDK in Same Folder i.e extracted (d) and (e) in C:/Program files
Step: 2 Setting Environment Variables you can visit : Control Panel\System and Security\System--> environment variables You can see two types of windows : User and System
User Environment Variables: You have to set ANT_HOME and JAVA_HOME
Add new variable : Variable name :ANT_ HOME Variable value : C:\Program Files\apache-ant-1.10.3
Variable name :JAVA_ HOME Variable value :C:\Program Files\Java\jdk1.8.0_172
System Environment Variables: edit path and at the end use ; and paste ant/bin address PATH : Variable name :path Variable value :....C:\composer;C:\Program Files\Git\cmd;C:\Program Files\apache-ant-1.10.3\bin
NOTE : Check ant & java configuration by windows command prompt : ant -version and java --version . If using git then git --version. If you error free then proceed further.
Step 3. Create a cordova project something like this command: cordova create hello com.example.hello HelloWorld
Step 4. create platform android or ios: ensure proper config.xml
**Step 5. now check cordova requirements: This work in app folder only **
Now build your app.
Other errors you get if you miss these:
check ="ANDROID_SUPPORT_VERSION" in config xml.
Add Required Plugin - cordova plugin add -- as you need in config.xml
- Cordova requirements: This work in app folder only
- Cant find the Ant Version: you have not used ANT_HOME, JAVA_HOME folder name.Ensure ANT_Home and JAVA_HOME only in User folder while the path in System Variable. Never use / " or ' in writing these variables.
"IF YOU DONT REQUIRE ANT AND GIT ---> Dont download it "
Hope this helps beginners and code layman like me.
Post a Comment for "Android Studio Project Detected"