Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An error occurred during creation of android sub-project because a path is not found

I'm trying to do phonegap build android and I have this message :

[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] adding the Android platform...
   [error] An error occured during creation of android sub-project. Path not found

Phonegap is looking for "C:\Documents and Settings\corbg\.cordova\lib\android\cordova\3.0.0\bin\create". There is nothing under the directory "3.0.0". I installed cordova like this npm install -g cordova.

I have the some problem when I run cordova platform add android.

Did I missing something?

like image 316
Dougui Avatar asked Oct 03 '13 12:10

Dougui


2 Answers

In Windows machine you have to delete .cordova directory under C:\Users\user_name\

like image 105
Vipul R Avatar answered Nov 06 '22 06:11

Vipul R


I have face the same issue, then i corrected my application path, afterthat it is worked out for me.

If you are using win 7 then add the Android ADK path in open the mycomputer -> Properties -> Change Settings-> Advanced -> Environment Variable -> User variable for ....-> path add the Android ADK path here like as following

C:\AndroidDev\adt-bundle-windows-x86-20131030\sdk\tools; C:\AndroidDev\adt-bundle-windows-x86-20131030\sdk\platform-tools

also add JAVA_HOME and ANT_HOME. - Abdul Jabbar

like image 43
user3068694 Avatar answered Nov 06 '22 06:11

user3068694