“Android Create” call fails in windows 7 - missing JDK

前端 未结 8 789
孤独总比滥情好
孤独总比滥情好 2020-12-05 21:43

I\'m having a problem getting my android dev environment setup in Windows 7. I follow the instructions here, as well as several environment sublinks. I am using Eclipse wi

相关标签:
8条回答
  • 2020-12-05 22:07

    I put rem statement in android.bat after the call command and hardcode the path of \bin\java.exe:

    rem Check we have a valid Java.exe in the path.
    set java_exe=<..>\jdk1.6.0_31\bin\java.exe
    rem call lib\find_java.bat
    if not defined java_exe goto :EOF
    

    Same for setting other variable javaw_exe thus:

    set javaw_exe=<..>\jre1.6.0_31\bin\javaw.exe
    if not exist %javaw_exe% set javaw_exe=%java_exe%
    goto :EOF
    
    0 讨论(0)
  • 2020-12-05 22:12

    In the SDK tools folder go to libs and edit find_java.bat. It can usually be found in C:\Program Files (x86)\Android\android-sdk-windows\tools\lib.

    Change all instances of %PROGRAMFILES% to %PROGRAMFILES(X86)%.

    I did this and the error went away.

    0 讨论(0)
提交回复
热议问题