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

前端 未结 8 1965
旧巷少年郎
旧巷少年郎 2021-01-12 02:31

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

[phonegap] detecting Android SDK environment...
[phonegap] using the local en         


        
8条回答
  •  醉话见心
    2021-01-12 03:20

    What solved the issue for me was having 2 directories on my PATH, the android platform-tools and tools. In my pc those folders were at C:\Program Files (x86)\Android\android-sdk\tools C:\Program Files (x86)\Android\android-sdk\platform-tools

    Also make sure you have the following environment variables

    • JAVA_HOME (C:\Program Files\Java\jdk1.7.0_51)
    • ANT_HOME (C:\Program Files\apache\apache-ant-1.9.3)
    • ANDROID_HOME (C:\Program Files (x86)\Android\android-sdk\platform-tools)

    I removed the .cordova folder under my user folder but I'm not quite sure if that helped as well.

    These links may help you

    • An error occured during creation of android sub-project
    • android' is not recognized as an internal or external command

提交回复
热议问题