Previously, my gradle was something like this: WHICH IS NECESSARY INCORPORATED
apply plugin: 'android' android { compileSdkVersion 19 buildToolsVersion '19.0.3' defaultConfig { minSdkVersion 11 targetSdkVersion 19 versionCode 1 versionName "1.0" } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile 'com.android.support:gridlayout-v7:19.0.1' compile 'com.android.support:appcompat-v7:+' compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:support-v4:+' compile 'com.google.android.gms:play-services:+' compile 'com.jakewharton:butterknife:4.0.+' compile 'com.google.code.gson:gson:2.2.+' compile 'com.google.android.gms:play-services:+' }
Thus, when downloading, I received an error message in the Google game, which says that apk is still in debug mode and cannot allow this apk to load.
Now, after searching, I found that I need to modify the gradle file, finally I came up with this gradle:
I beg you if I come back!
apply plugin: 'android' android { compileSdkVersion 19 buildToolsVersion '19.0.3' defaultConfig { minSdkVersion 11 targetSdkVersion 19 versionCode 1 versionName "1.0" } buildTypes { release { signingConfig signingConfigs.release } } signingConfigs { release { storeFile file("F:\\MyAppFolder\\AppName.jks") storePassword "abc1236" keyAlias "prince" keyPassword "abc1236" } } } dependencies { compile 'com.android.support:gridlayout-v7:19.0.1' compile 'com.android.support:appcompat-v7:+' compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:support-v4:+' compile 'com.google.android.gms:play-services:+' compile 'com.jakewharton:butterknife:4.0.+' compile 'com.google.code.gson:gson:2.2.+' compile 'com.google.android.gms:play-services:+' }
Now where am I wrong?
Please, help.
android android-studio android-gradle google-play build.gradle
user1991
source share