Programming

Android Studio에서 실행 버튼이 비활성화 됨

procodes 2020. 8. 6. 21:19
반응형

Android Studio에서 실행 버튼이 비활성화 됨


런 버튼을 클릭 할 수 없습니다. 누구든지 고치는 법을 알고 있습니까?

비활성화 된 실행 버튼


메뉴에서 실행을 클릭 한 다음 구성 편집 ...을 클릭 한 다음 왼쪽에서 Android 애플리케이션을 클릭하고 + 버튼을 클릭하십시오. 팝업 메뉴에서 Android 애플리케이션을 선택하십시오. 그런 다음 모듈을 선택하십시오 (일반적으로 앱 또는 이와 유사한 것). 그런 다음 적용을 클릭하고 확인을 클릭하십시오.

그 후에 더 많은 오류가 발생하면 Android Studio에서 프로젝트를 다시 가져 오십시오.


를 만들 때 Run Configuration모듈 드롭 다운 <no module>은 나 에게만 해당됩니다 . 모듈 드롭 다운에 호출 메뉴가 File -> Sync Project with Gradle Files추가되었습니다 app. 그런 다음 실행 버튼이 활성화되었습니다.


RUN 버튼의 왼쪽에있는 드롭 다운 버튼을 클릭하기 만하면됩니다 (이미지에서 빨간색 상자에있는 드롭 다운)에서 'app'옵션을 선택하면 RUN 버튼이 활성화됩니다.

아래 스크린 샷을 참조하십시오.

여기에 이미지 설명을 입력하십시오


The above answer didn't work for me, instead closing the project and restaring the AS IDE worked for me.


It was quite silly for me, I just opened the Run > Run Configurations window everything seemed to be fine there, I didn't change anything, when I closed the window the button was enabled.


If you have changed jdk version then go to File->Project Structure->Select SDK Location from left bar->update JDK Location in editbar in right bar.


If your IDE is in power save mode, then the run button etc. are also disabled.

You can verify this via the file -> power save mode, make sure it is disabled.

실행 버튼을 활성화하기 위해 절전 모드 비활성화


if you're importing an eclipse project to android studio, you'll also encounter the same issue as above. Double Check if grade>app has apply plugin: 'com.android.application' on the top as sometimes android studio imports it as a library.


  • Select the project view in the android studio.
  • Remove all gradle folders.
  • Restart the android studio.

This will work.

The issue is happening since the gradle was configured for an android studio in another machine and the files pushed on the git and are using in your studio.

After removing these gradle files and restarting the studio, the studio will generate gradle files for your system. This will solve the issue.


I'm using Linux where I had a symlink in my home folder pointing to a folder containing the Android Studio projects. Loading a project using the symlink failed, loading a project from the folder where the symlink is pointing to worked!


I opened the wrong folder.... Verify is your root folder in Android studio has the build.gradle file.


Above answer didn't work for me, just do click File -> Invalidate/cache -> Invalidate and Restart.


My solution was to go to that multiselect button, then "Edit Configurations" -> Go to "+" and select the module (in this case it would be an app if you do not have a multiproject -> then apply and OK

참고URL : https://stackoverflow.com/questions/28385172/run-button-is-disabled-in-android-studio

반응형