I created a new cordova project and I added the android platform normally as I had done before, but when I run the command cordova build
or cordova run
it can not find the solution.
Does anyone know what I should do?
I was able to solve the problem by simply updating the SDK and it worked again, thanks for the help guys.
If you are trying to run on the android platform, you should have the following environment variables configured on your computer: ANDROID_SDK ANDROID_NDK ANDROID_HOME ANDROID_PLATFORM_TOOLS and also put in PATH
If the variables are configured and still have an error, you can execute the following commands: cordova platform remove android cordova platform add android
Well, I do not use Phonegap / Cordova this way, I always try on my emulator myself
But come on, you can try to exclude your .gradle
from
C: \ Users \ directory
and try again.
Or:
In Eclipse, go to Windows - > Preferences - > gradle- > arguments. Find JVM Arguments choose "USE:" option and write these arguments -Xms128m -Xmx512m and click Apply.
And finally, this is just a tip, it has nothing to do with the bug, update your Java.