Android Studio build error or misconfiguration

I am having problems creating Android Studio on one of my computers. The same project was built well, and when I clicked on github and pulled out of another machine, I got the following error.

Argument 0 for @NotNull parameter of com/intellij/execution/configurations/GeneralCommandLine.setExePath must not be null 

I tried to create a new project by default, and I get the same build error, so this should be something with my setup.

Does anyone know what I can do to fix these problems? Or even how to completely remove Android Studio and start a new job? thanks

+4
source share
2 answers

I had the same error. In my case, this was caused due to a modification of some important configuration. I fixed the problem by following these steps:

  • File → Other Settings → Default Project Structure
  • SDKs
  • Add a new SDK (select the JDK option)
  • Specify the path to the JDK (in my case it was "C: \ Program Files \ Java \ jdk1.7.0_45")
  • Save changes

You can also check if the path to the Android SDK has been configured

Good luck

+1
source

There was the same problem. To remove Android Studio, delete all the files associated with it, including the installation files, the .AndroidStudioPreview folder under your user directory, and the files created in the project folder upon import. This means the idea folder and the [projectname] .iml file. Now reinstall and re-import the project. You can reuse the same build.gradle. Now the mine is working.

0
source

Source: https://habr.com/ru/post/1482057/


All Articles