打包

打包

 

 

 

 

 

 

 

如果没有key,自己生成,四个密码相同就行

 

 

如果报错:Error:Could not determine the dependencies of task ':sample:transformClassesWithInstantRunForDebug'.

> In order to use Instant Run with this device running API 22, you must install platform 22 in your SDK

在productFlavors同级位置添加

lintOptions {
    checkReleaseBuilds false
    // Or, if you prefer, you can continue to check for errors in release builds,
    // but continue the build even when errors are found:
    abortOnError false
}

 

如果报N多红色的错误可能是65535的那个错误,可以在module的build.gradle中添加下面的代码

defaultConfig {
    applicationId "com.myscoop"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1"
    multiDexEnabled true	这个必须添加 否则下面的代码不生效
}
dexOptions {
    preDexLibraries true
    javaMaxHeapSize “6g”   可以从2开始往上加
    incremental true
    dexInProcess = false
}
lintOptions {
    abortOnError false
    checkReleaseBuilds false
    // 防止在发布的时候出现因MissingTranslation导致Build Failed!
    disable 'MissingTranslation'
}

 

 

 

 

 

 

 

 

 

如果没有key,自己生成,四个密码相同就行

 

 

如果报错:Error:Could not determine the dependencies of task ':sample:transformClassesWithInstantRunForDebug'.

> In order to use Instant Run with this device running API 22, you must install platform 22 in your SDK

在productFlavors同级位置添加

lintOptions {
    checkReleaseBuilds false
    // Or, if you prefer, you can continue to check for errors in release builds,
    // but continue the build even when errors are found:
    abortOnError false
}

 

如果报N多红色的错误可能是65535的那个错误,可以在module的build.gradle中添加下面的代码

defaultConfig {
    applicationId "com.myscoop"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1"
    multiDexEnabled true	这个必须添加 否则下面的代码不生效
}
dexOptions {
    preDexLibraries true
    javaMaxHeapSize “6g”   可以从2开始往上加
    incremental true
    dexInProcess = false
}
lintOptions {
    abortOnError false
    checkReleaseBuilds false
    // 防止在发布的时候出现因MissingTranslation导致Build Failed!
    disable 'MissingTranslation'
}

 

上一篇:解决 mysql.connector.errors.NotSupportedError


下一篇:判断字符串中是否有身份证号码