Phonegap run android gives error

后端 未结 4 2030
生来不讨喜
生来不讨喜 2021-01-15 19:47

I am trying to run the basic hello-world app. I am totally frustrated can\'t find solution to this. What is wrong? I have tried these solutions but still no luck. Please hel

相关标签:
4条回答
  • 2021-01-15 20:18

    this worked for me

    Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System Variables->New:

    Variable name: _JAVA_OPTIONS

    Variable value: -Xmx512M

    taken from this link

    0 讨论(0)
  • 2021-01-15 20:22

    Your logcat output clearly say that application build is failed, beacuse of sdk tools issue. add the path of sdk tools in enviroment variables,like this yourpath\sdk\platform-tools\;'your path'\sdk\tools\.Make sure that path is added in this way go to advancedsystemsettings->Enviromentvariables->systemvariables(not the user variable) select the path system variable and add your path

    0 讨论(0)
  • 2021-01-15 20:29

    After seeing your log it seems to be java heap memory issue.. See this question for more help.. it suggests to use 64-bit JDK.

    This link might also help you..

    0 讨论(0)
  • 2021-01-15 20:35

    Here is how to fix it:

    Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System

    Variables->New:
    
    Variable name: _JAVA_OPTIONS
    
    Variable value: -Xmx512M
    

    Variable name: Path
    
    Variable value: ;C:\Program Files\Java\jre6\bin;F:\JDK\bin;
    
    Change this to your appropriate path.
    
    0 讨论(0)
提交回复
热议问题