程序猿小冰博客

Java开发交流群:154734590 Android开发交流群:423752172

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

作者:程序员小冰,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

阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_21376985/article/details/51545947
上一篇AndroidStudio修改程序的包名,可以修改com.example.xxx之类的详解
下一篇Android开发之解决Error:(16) Error: "ssdk_baidutieba_client_inavailable" is not translated in "en" (Englis
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭