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
'Programming' 카테고리의 다른 글
Gradle을 사용하여 종속성이있는 jar 작성 (0) | 2020.08.06 |
---|---|
sed 전체 단어 검색 및 교체 (0) | 2020.08.06 |
TextinputLayout의 레이블 색상을 변경하고 android 텍스트 밑줄을 편집하는 방법 (0) | 2020.08.06 |
git : 한 리포지토리의 커밋에 의해 도입 된 변경 사항을 다른 리포지토리에 적용 (0) | 2020.08.06 |
부트 스트랩 : 컨테이너의 너비를 어떻게 변경합니까? (0) | 2020.08.06 |