Android Studio : 애플리케이션 설치 실패
Android Studio를 사용하는 방법을 배우려고 노력했지만 샘플 프로그램 중 하나를 실행하려고하면 다음 오류 메시지가 표시됩니다.
null 메시지와 함께 설치에 실패했습니다. 기존 버전의 apk가있는 경우 제거하고 다시 설치하여이 문제를 해결할 수 있습니다.
경고 : 제거하면 응용 프로그램 데이터가 제거됩니다!
기존 애플리케이션을 제거 하시겠습니까?
5 개의 샘플 프로그램에서이 작업을 수행하려고했는데 모두이 오류가 발생합니다. 누구든지 이것을 해결하는 방법을 알고 있습니까?
Redmi 3s 모바일을 사용하고 있습니다. 나는 같은 문제가 있습니다.
해결책 :이 문제는 MIUI 8을 실행 하는 Xiaomi 전화에서 일반적입니다 . 이 문제는 설정 앱의 개발자 옵션에서 MIUI 최적화를 끄면 해결할 수 있습니다. 그런 다음 앱을 다시 컴파일하면 작동합니다.
Settings --> Additional settings --> Developer options --> Turn Off MIUI optimization
또는
Settings --> Developer options --> Turn Off MIUI optimization
같은 문제가 발생했습니다. 깨끗한 프로젝트를 선택한 다음 빌드 메뉴에서 프로젝트를 다시 빌드하면 문제가 해결되었습니다.
Instant Run 비활성화
환경 설정> 빌드, 실행, 배포> 인스턴트 실행
출처 : @ user77309의 코멘트
오늘 저는이 오류를 단계적으로 처리하고 쉽게 해결했습니다.
경로 : Android Studio 환경 설정 / 빌드, 실행, 배포 / 즉시 실행
이동 안드로이드 스튜디오 환경 설정 (Mac 용) 또는 (Windows 용) 설정
빌드, 실행, 배포 탭을 선택합니다.
Instant Run 선택
Enable Instant Run to hot swap code / resources changes on deply (기본값 활성화)를 선택 취소합니다.
그것은 나를 위해 작동합니다 !!
설정> 애플리케이션으로 이동합니다. 아마도 다른 사용자를 위해 앱이 여전히 설치되어있을 것입니다 (Moto G와 동일한 문제가 있었지만 다른 앱 중에서 앱을 보지 못했지만 여전히 설정에서 내 앱 중이었습니다). 그것을 찾아 모든 사용자를 위해 제거하십시오.
이것이 문제인 경우 목록 끝에 앱이 있습니다 (설정> 앱> 모두).
"설치되지 않음"으로 표시된 모든 앱이 여전히 존재하며 해당 앱이있을 때까지 Android 스튜디오에서 동일한 앱을 설치할 수 없습니다.
이는 앱이 라이브러리를 사용 중이고 동일한 라이브러리를 사용하는 앱이 기기에 설치되어있을 때 발생합니다. gradle로 이동하여 다음을 입력하십시오.
android{
defaultConfig.applicationId="your package"
}
이렇게하면 문제가 해결됩니다.
INSUFFICIENT_STORAGE
해결책 : 전화 저장 공간 정리
Pay attention Android Studio log:
open: Permission denied
open: Permission denied
pkg: /data/local/tmp/com.example......... Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
Step 1: Go to "Setting" → find "Developer options" in System, and click.
Step 2: TURN ON "Verify apps over USB" in Debugging section.
Step 3: Try "Run app" in Android Studio again!
and you should also TURN ON following fields inside "Developer option" .....
1: TURN ON ->"Install via USB" field
Some solutions:
1 Build -> Clean Project
2 Build -> Rebuild Project
3 Built -> Make Project
4 Remove your application from device and try install again
5 Mb you have some problems with actual version of yours app(try to pull actual branch). Also you can check on your emmulator, if yours app is running.
6 Try to use 1,2,3,4 solutions.
The solution for me was : (in a Huawei)
- Android Studio -> Build -> Clean Project
- In the phone -> go to Phone Manager -> Cleanup and Optimize
I had the same issue, and found that it was the USB cable I was using that was causing the issue.
Changing the USB cable fixed the issue, and I could successfully install the app afterwards.
In real device do below tasks..
1.clean all cache memory.
2.check the internal storage space (if space is just 500 mb free, then remove some data or app in the internal storage maintain at least 1 gb space.
3.again do clean all cache memory.
4.now goto android studio or eclipse click on app goto run select the device and run I hope app will install and it will run..!!!
Uninstalling from AVD worked for me. After reinstalling it worked
For the 1st time installation of apps in a device, enable developer option which is mentioned in the above post. For facing problem while installing the apps from the tool, follow the below steps....
By enabling an option in settings, you can install apps directly. Error will disappear.
For MI users: Go to Settings-> Additional settings-> Privacy-> Unknown sources (make it enable) For Normal Users: Go to Settings-> Security -> Unknown sources (make it enable)
Simply closing Android Studio (and emulator) then re-opening fixed it for me. Once I ran the app again, the apk re-installed successfully and app ran properly.
Happened to me as well: At the first time, it says- Failure [INSTALL_FAILED_CONFLICTING_PROVIDER] At the second time, it says- DELETE_FAILED_INTERNAL_ERROR
This because of the new 'com.google.android.gms' version 8.3.0
Changing it back to 8.1.0 solved the problem in my case
I was having the same error, but i fixed it after reinstalling the HAXM. This problem is caused because of the virtual device not starting properly. If your device keep showing on screen "Android" or the screen is black, it have not started yet, you have to wait more for it to start properly, then it shall run. If it is too slow, maybe you should find a way to accelerate the Android Virtual Device (AVD). The Intel computers have the HAXM (hardware-accelerated-execution-manager).
In my computer was not starting because of the HAXM not working, I fixed it by reinstalling the HAXM, downloading it from the intel website: "https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager"
Then i set the HAXM max memory to 1536MB in the installation, for not having the problem of this other post, that you maybe have and i was having too: "HAXM configuration in android studio"
After all done, it worked fine.
android {
buildTypes {
debug {
debuggable true
}
and In the AndroidManifest.xml file, add android:debuggable="true" to the <application>
element.
https://developer.android.com/studio/run/device.html#setting-up
it works for me..
I solved the issue by simply deleting my whole /build folder and rebuilding (menu Build > rebuild project).
Recently I also find the same problem and there some reasons behind this but I am giving you 3
- In your phone in the setting go to "Developer Option" and enable USB debugging
- Also, check the "Install via USB" is also on in Developer Option itself.
- In Android Studio go to File -> Settings -> Build, Execution, Deployment -> Instant Run and uncheck the Enable Instant Run
It must work.
This problem cause to me because of the project path . Y:\Example&SourceCode with & sign So i change the Project path to another one without special characters. Now It is Fine.
For me it only started working after I rebooted device (Motorola-Nexus-6).
(I also tried to clean, disable "instant run", reopen Android Studio, verified installed applications to be sure there are no clashes, disable and reenable Debug mode in phone, reconnect USB cable)
I have faced this issue since I have upgraded the build tools from 26.0.2 to 27.0.3. Reverting back, clean and rebuild solve the issue. Also I have degraded the gradle plugin version from 3.1.3 to 3.0.1 as the latest version was overriding the build tools to latest version.
I also got same problem while generating signed APK. Just select APK signature scheme v1, not v2 (introduced in in Android 7.0). If you select v2 scheme it won't work on devices that use Android versions older than 7.0.
I solve this problem by: Enable Instant Run
Settings>Build, Execution, Deployment>Instant Run
참고 URL : https://stackoverflow.com/questions/32718044/android-studio-application-installation-failed
'Program Tip' 카테고리의 다른 글
동일한 컨트롤러에서 동일한 작업 이름을 가진 GET 및 POST 메서드 (0) | 2020.10.15 |
---|---|
GetManifestResourceStream이 NULL을 반환합니다. (0) | 2020.10.15 |
PHP : 문자열의 공백을 % 20으로 변환 하시겠습니까? (0) | 2020.10.15 |
VIM : 왼쪽 NerdTree 패널에서 vsplit으로 오른쪽에있는 파일을 어떻게 열 수 있습니까? (0) | 2020.10.15 |
CSS3 전환-페이드 아웃 효과 (0) | 2020.10.15 |