I changed the directory structure E: to R:, but still in build.xml
is picking the E:\Adroid SDK\...
path, infact the ANDROID_HOME
variable is correct R:\Android SDK\...
but still.
This is the error I'm getting while running cordova run android
command.
R:\Cordova\workshop>cordova run android
Running command: cmd "/s /c "R:\Cordova\workshop\platforms\android\cordova\run.b
at""
Buildfile: R:\Cordova\workshop\platforms\android\build.xml
BUILD FAILED
R:\Cordova\workshop\platforms\android\build.xml:90: Cannot find E:\Android SDK\android-sdk\tools\ant\build.xml imported from R:\Cordova\workshop\platforms\android\build.xml
Total time: 0 seconds
R:\Cordova\workshop\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,R:\Cordova\workshop\platforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
ERROR running one or more of the platforms: Error: cmd: Command failed with exit
code 8
You may not have the required environment or OS to run this project
Any body have any idea why the old pah is still there and how to change it, it'll be helpfull.
I sorted out by just replacing with only those java
files, www
and plugins
folder which are different, but still using Gradle
build.Trying to use Ant
build. Currently I'm back on track, no issue with compiling.
I'm sure this will help you so that you can start development again.
But be careful while manipulating java
files, by the way you get the errors you can be able to sort it, but still.