Invalid command line parameter when Android executes

后端 未结 10 1637
天命终不由人
天命终不由人 2020-11-30 11:27

When I click the \'run as Android application\' option, it shows the following error:

[2010-08-16 16:56:35 - Emulator] invalid command-line parameter: http:/         


        
相关标签:
10条回答
  • 2020-11-30 11:38

    Delete your previous Virtual devices. Re create it. launch it.

    Once the emulator is running, run your application.

    Other wise, go to your run configuration and select the emulator you would like to run.

    0 讨论(0)
  • 2020-11-30 11:47

    If you manually open the emulator from within the Android SDK then run the debugger it works too.

    0 讨论(0)
  • 2020-11-30 11:50

    I had this same exact error when I would try to launch the emulator from Eclipse. I had all my Android files in my documents to begin with, not my program files. I moved these files and still had the problem because of my user name having a space in it.

    So I took the suggestion of Andrew McGarry and put my Android SDK folder in my C: directory and viola, problem solved...well after I redirected it in Eclipse obviously lol.

    Just make sure that nothing in your SDK path has a space in it and you should be fine. You shouldn't have to uninstall or delete anything, and you probably won't have to move any files around either. Remember...no spaces in the entire path. =)

    0 讨论(0)
  • 2020-11-30 11:50

    I was facing the same problem with Android when executing the emulator, and I found a solution right now. Please follow these steps:

    1. Uninstall the SDK that you have already installed
    2. Create a folder in disc C
    3. Name it like Android
    4. Open it and create inside it a new folder, for me I named it PROGRA~1
    5. Execute the installation of your SDK to be installed in the folder created PROGRA~1
    0 讨论(0)
  • 2020-11-30 11:55

    This trick doesn't work in IntelliJ. To solve it I moved the Android SDK to c:\android-sdk-windows.

    After that you still have to change the path to Android in IntelliJ of course: - right click on the module -> open module settings - go to: platform settings -> SDKs -> Android

    Or delete the previous one and create a new one

    0 讨论(0)
  • 2020-11-30 11:56

    In the line that says invalid parameter. You need to get rid of all the spaces. I had the same problem - my path was something like jason/phone app/xyz

    I changed the directory name to jason/phoneapp/xyz and it worked. You need to change the actual name of the directory that the command line is referencing. Then you need to go into eclipse and go into Windows > Preferences and you will find it says phone app (in my case) and change this also to phoneapp, and all will be well.

    Don't uninstall anything, and don't move files around because they will the rest of the SDK will eventually go looking for them and not be able to find them.

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