I am studying Android Studio and this error continues to appear.
(on emulators)
pkg: /data/local/tmp/com.test.sunshine Failure [INSTALL_FAILED_UID_CHANGED]
and this (on a physical device)
pkg: /data/local/tmp/com.test.sunshine Failure [INSTALL_FAILED_DEXOPT]
He will ask you to remove, but nothing happens, because the application has not yet been installed. This is the first time I have run any projects on Android Studio. I have Genymotion emulators that also work on my physical device, but with the same results.
I tried passing apk to the emulator and installing it from there. However, the same error appears
I did not touch any code, this is a preliminary operation "Blank" with a fragment. I have the latest version of Android Studio 1.0, as well as the latest versions of the SDK.
I looked through a lot of questions here and they all suggest uninstalling the application directly using root. I can not, because the application is not installed. I tried to clear, then rebuild, still the same.
I'm starting to suspect him of gradle scritps. I'm new to Android Studio, so I don't know any of the gradle jobs.
Here is my gradle script:
apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.1" defaultConfig { applicationId "com.marlon.sunshine" minSdkVersion 14 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.2' }
Ok, so for those who are still looking for this problem, I did not find any solution, the error just disappeared when I updated Android Studio. Therefore, the latest IDE updates should have made a decision.