1

Here , I have added latest google play services(com.google.gms:google-services:3.0.0), gradle(com.android.tools.build:gradle:2.2.0-alpha). I get the following error on installation in my device.

enter image description here Here is the app build.gradle content.

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

packagingOptions {
    exclude 'META-INF/NOTICE' // will not include NOTICE file
    exclude 'META-INF/LICENSE' // will not include LICENSE file
    exclude 'META-INF/maven/com.squareup.retrofit/retrofit/pom.properties'
    exclude 'META-INF/maven/com.squareup.retrofit/retrofit/pom.xml'
    exclude 'META-INF/maven/com.squareup.okhttp/okhttp/pom.xml'
    exclude 'META-INF/maven/com.squareup.okhttp/okhttp/pom.properties'
}

defaultConfig {
    applicationId "com.wolfmatrix.navz"
    minSdkVersion 19
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
}


buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

lintOptions {
    abortOnError false
}

sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }

}

2
  • did you sign your app apk?? Commented Jun 17, 2016 at 6:58
  • Yes not for release. Commented Jun 17, 2016 at 7:01

1 Answer 1

1

Error shows that apk is signed incorrectly

Try this -

1) Delete your signed apk from "{WORKSPACE} \ {YOUR APP FOLDER}\app\build\outputs\apk".

2) uninstall your app from device.

3) run project over USB debugging to create app-debug.apk

4) after successful build you can sign your app apk for release.

Hope it will help :)

UPDATE

Check this - Installation failed with Android Studio, APK not signed

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.