앱이 설치되지 않은 것으로 보여도 [INSTALL_FAILED_UPDATE_INCOMPATIBLE] 실패
내 앱을 Android 기기에 배포하려고 할 때 다음 오류가 발생합니다.
Deployment failed because of an internal error: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
이 질문에 대해 알고 있지만 앱이 설치되지 않았습니다. 배포 시도 중 Visual Studio에서 제거 / 일부 제거되었습니다.
과거에는 Google Play 스토어에서 앱을 다운로드 한 다음 설정-> 응용 프로그램 관리자에서 제거 하여이 문제를 해결했습니다. 그러나 지금 설치하려고 할 때 "비 호환 업데이트"오류가 발생합니다.
티타늄 백업을 사용하여 제거하려고했지만 다른 것은 거의 없지만 운이 없습니다.
편집 1
나는 @Motz로부터 명백한 해결책이 효과가 없다고 언급하지 않았다는 것을 깨달았다. 즉, 앱이 설정-> 앱에 나타나지 않습니다.
나는 이것을 여러 번 보았다. 일반적으로 휴대 전화에 서명 된 릴리스 버전이 있고 디버그 버전을 맨 위에 배치하려고하기 때문입니다. 완전히 제거되지 않은 유효하지 않은 상태에 빠집니다.
저에게 맞는 해결책은 명령 프롬프트를 열고 다음을 입력하는 것입니다.
adb uninstall my.package.id
일반적으로 개발을 계속하기 위해 제거를 완료합니다.
행운을 빕니다!
을 할 필요가 없습니다. adb uninstall
로 이동 settings->apps
한 다음 제거 하십시오 . 응용 프로그램이 회색으로 표시됩니다.
이 문제는 일반적으로 @Kiliman과 같은 릴리스 대 디버그 버전과 관련이 있습니다.
응용 프로그램을 제거하면이 문제를 피할 수 있습니다.
INSTALL_FAILED_UPDATE_INCOMPATIBLE
그러나 때로는 메시지 제거가 다시 발생하면 Android OS 5.0 +에서 발생하므로 해결책입니다.
Settings
>로 이동하면 Apps
다음 메시지와 함께 앱을 찾을 수 있습니다.
"이 사용자에게는 설치되지 않았습니다"
다음 옵션을 사용하여 모든 사용자에 대해 수동으로 제거해야합니다.
"모든 사용자를위한 제거"
응용 프로그램이 제거되었는지 확인해야합니다.
휴대 전화에서 settings/applications
설치된 모든 응용 프로그램의 목록을 표시 한 다음 모든 사용자에 대해 응용 프로그램을 제거했는지 확인하십시오 (제 경우에는 응용 프로그램을 제거했지만 여전히 다른 사용자를 위해).
일반적으로 Android 5.0 이상 버전 기기에서이 문제에 직면합니다. 동일한 장치에 다중 사용자 프로필 계정이 있기 때문입니다. 모든 앱은 모든 사용자를위한 별도의 인스턴스로 설치됩니다. 아래 스크린 샷과 같이 모든 사용자를 제거해야합니다.
실수로 두 개의 장치가 연결되었습니다.
After removing one device, INSTALL_FAILED_UPDATE_INCOMPATIBLE
error has gone.
Uninstall the apk(app that you are working) from your android device and then run again.
You can just add a parameter to run, see:
Run --> Parameters
In field parameters add -cleaninstall
Now just run, they always will do a deep clean before install.
Ok uninstall the app, but we admit that the data not must be lost? This can be resolve, upgrading versionCode and versionName and try the application in "Release" mode.
For example, this is important when we want to try the migration of our Database. We can compare the our application on play store with actual application not release yet.
In my case. I installed the release-version app. And after uninstall the app from my device. Thing works fine.
In my case i was getting this when switched the Minimum target version of the android and when i changed back to original one (when i created project at first). So for that uninstalling worked. But when i changed my android version to latest i was getting it again. To fix that, i went to properties of android project and in Android manifest section, i added a package name e.g com.dotnetdreamer.net. If you have already a package name then you can simply rename it to something else.
One simple way is rename your package name and run again
Delete all app files from Phone
To automate the deletion of an app on your phone you can use the steps below. It can be very useful to delete your app and app data on a quick and clean way.
Make a textfile with this code and save it as Uninstall.sh. Go to the folder (where you've put it) of this script in the terminal and do: sh Uninstall.sh YOURNAMESPACE
Now your namespacefolder (including saved appfiles and database) will be deleted.
echo "Going to platform tools $HOME/Library/Android/sdk/platform-tools"
cd $HOME/Library/Android/sdk/platform-tools
echo "uninstalling app with packagae name $1"
./adb uninstall $1
Delete all app files from pc
Make a textfile with this code and save it as DeleteBinObj.sh.
find . -iname "bin" -o -iname "obj" | xargs rm -rf
Go to the folder of your project where you place this script and do in the terminal: sh DeleteBinObj.sh
In case this helps someone, I deployed my app to google play, when I uninstalled it and tried to run a debug on my device (new version) I was getting this failed update message.
I couldn't see the app in my device (it was already uninstalled) so I:
Installed the first version again from google play
Opened Settings/App/App name
Cleared the Data
Cleared the Cache
Uninstalled the app
Now you can deploy the debug version again to the device :)
If you are using Samsung Device and by any chance marked your app for Samsung Knox, then you need to uninstall it from My Knox app.
Uninstalling just from General apps won't uninstall it from Knox App. It has to be done explicitly!
Using Ionic with Cordova via command line...
ionic cordova run android --prod
I ran into this and found that I had deleted the release version from a previous test install, but had an old debug version that was hanging out in apps drawer that I missed. I unplugged my device from the computer, opened the app drawer and used "Search apps.." to find all instances of the app to uninstall them. Then I re-plugged in the device to the computer and viola, it worked!
Thanks for the help everyone!
나는 이것이 미래의 누군가를 도울 것이지만 태그 config.xml
내 widget
에서 기본 id ( io.ionic.starter
)를 자신의 id로 변경하기를 원합니다. 한 번 봐 가지고 이 안드로이드 패키지 이름에 대한합니다.
서명이 기존의 현재 APP 및 새로운 APK와 일치하지 않습니다.
따라서 이전 앱을 제거하고 gradlew clean하고 다시 APK를 설치하십시오
반응 네이티브 런 안드로이드
반응 네이티브 실행 IOS
'Programing' 카테고리의 다른 글
UIImage와 Base64 문자열 간 변환 (0) | 2020.05.08 |
---|---|
터미널을 통해 OS X에서 adb에 액세스 할 수 없습니다 (“명령을 찾을 수 없음”). (0) | 2020.05.08 |
JQuery : 입력 필드의 변화 감지 (0) | 2020.05.08 |
Java에서 부울 변수를 전환하는 가장 확실한 방법은 무엇입니까? (0) | 2020.05.08 |
이미지 데드 센터를 부트 스트랩과 정렬하는 방법 (0) | 2020.05.08 |