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

来源:互联网 发布:windows怎么装sketch 编辑:程序博客网 时间:2024/05/16 12:16

作者:程序员小冰,CSDN博客:http://blog.csdn.net/qq_21376985
QQ986945193 博客园主页:http://www.cnblogs.com/mcxiaobing/
由于添加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

5 0
原创粉丝点击