[置顶] AndroidStudio与eclipse打包的时候报错。Error:(4) Error: "ssdk_instapager_login_html" is not translated in "en"

由于添加ShareSDK文件,导致打包突然报错,找了好久都是eclipse的方
法,最后发现在AndroidStudio的解决方法是:

报错代码:
Error:(4) Error: “ssdk_instapager_login_html” is not translated in “en” (English) [MissingTranslation]

解决方法:

(1)Android studio :在build.gradle添加

lintOptions{
    checkReleaseBuilds false
    abortOnError false
}

下面是build的代码“

apply plugin: ‘com.android.application’

android {
compileSdkVersion 23
buildToolsVersion “23.0.3”

defaultConfig {
    applicationId "com.david.qq986945193"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
lintOptions{
    checkReleaseBuilds false
    abortOnError false
}

}

dependencies {
compile fileTree(dir: ‘libs’, include: [‘*.jar’])
testCompile ‘junit:junit:4.12’
compile ‘com.android.support:appcompat-v7:23.3.0’
compile files(‘libs/MobCommons-2016.0426.1819.jar’)
compile files(‘libs/MobTools-2016.0426.1819.jar’)
compile files(‘libs/ShareSDK-Core-2.7.2.jar’)
compile files(‘libs/ShareSDK-QQ-2.7.2.jar’)
compile files(‘libs/ShareSDK-QZone-2.7.2.jar’)
compile files(‘libs/ShareSDK-ShortMessage-2.7.2.jar’)
compile files(‘libs/ShareSDK-SinaWeibo-2.7.2.jar’)
compile files(‘libs/ShareSDK-TencentWeibo-2.7.2.jar’)
compile files(‘libs/ShareSDK-Wechat-2.7.2.jar’)
compile files(‘libs/ShareSDK-Wechat-Core-2.7.2.jar’)
compile files(‘libs/ShareSDK-Wechat-Favorite-2.7.2.jar’)
compile files(‘libs/ShareSDK-Wechat-Moments-2.7.2.jar’)
}

然后即可解决问题。

据说eclipse解决方法是:(本人没有尝试,转自网络)

Eclipse > Preference > Android > Lint Error Checking的Correctness: Messages > MissingTranslate
将 Severity 从 Fetal 改为 Warming

你可能感兴趣的:(eclipse,android,android,Android开发,Studio)