[置顶] AndroidStudio与eclipse打包的时候报错。Error:(4) Error: "ssdk_instapager_login_html" is not translated in "en"
2016-05-31 15:10
423 查看
作者:程序员小冰,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添加
下面是build的代码“
apply plugin: ‘com.android.application’
android {
compileSdkVersion 23
buildToolsVersion “23.0.3”
}
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
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
相关文章推荐
- Java入门:Java IO概括
- Spring框架学习(一)
- Java基础回顾 : 处理流(缓冲流)
- java之JFrame
- springMvc实现restful解决put和delete表单提交问题
- beansbinding NetBeans IDE 中 Swing数据绑定插件
- Nim Game
- 常用Eclipse快捷方式
- Java中的回调机制就是写纸条表白
- 使用Spring进行切面(AOP)编程
- 原码, 反码, 补码 详解(一)
- 深入Java事务的原理与应用
- FrameLayout中替换Fragment遇到异常java.lang.IllegalStateException: commit already called
- spring文件下载记录
- 浅谈Java中的异常
- (Java)LeetCode-21. Merge Two Sorted Lists
- java spring hibernate
- JAVA JDK1.5-1.9新特性
- java中的jar包
- JAVA虚拟机内存机制