Cordova/Phonegap error - Unable to start the daemon process

Asked

Viewed 528 times

2

I created a new project Ordova and added the android platform normally as I had done before, but when I run the command cordova buildor cordova runhe gives this error I could not find the solution.

Someone knows what I must do?

inserir a descrição da imagem aqui

  • use these two commands: cordova platform remove android and cordova platform add android recompile with: cordova build android and see what happens.

3 answers

1

I managed to solve simply updated the SDK and it started working again, thanks for the help guys.

  • @jbueno but I don’t think anyone had answered that, no?

0

If you are trying to run on the android platform, you should have the following environment variables configured on the computer: ANDROID_SDK ANDROID_NDK ANDROID_HOME ANDROID_PLATFORM_TOOOLS and also put in PATH

If the variables are configured and still in error, you can execute the following commands: Cordova Platform remove android Cordova Platform add android

  • I have created PATH and ANDROID_HOME, what would be the content of the others? @henriquels

  • ANDROID_SDK="/opt/software/android-sdk"
ANDROID_NDK="/opt/software/android-ndk"
ANDROID_HOME="$ANDROID_SDK"
ANDROID_PLATFORM_TOOLS="$ANDROID_SDK/platform-tools"
PATH="${PATH}:$ANDROID_HOME/tools:$ANDROID_PLATFORM_TOOLS"

0

Well, I don’t use Phonegap/Ordova this way, I always try it on my emulator of his own

http://app.phonegap.com/

But come on, you can try to delete her .gradle of

C: Users directory

and try again.

Or:

Under Eclipse, go to Windows -> Preferences -> Gradle-> arguments. Find JVM Arguments choose "USE:" option and write these -Xms128m -Xmx512m arguments and click Apply.

And lastly, this is just a hint, it has nothing to do with the error, update your Java.

  • I already deleted the file .gradle and it didn’t work, I don’t use eclipse for development, I develop using Sublime, I’m downloading the new version of Java.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.