zoukankan      html  css  js  c++  java
  • 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

    程序员小冰博客:http://blog.csdn.net/qq_21376985 技术交流QQ986945193 微博:http://weibo.com/mcxiaobing
  • 相关阅读:
    [CF1076D] Edge Deletion
    [CF1081D] Maximum Distance
    [CF1095F] Make It Connected
    [CF1328E] Tree Queries
    [CF1328F] Make k Equal
    Codeforces Round #629 (Div. 3) 总结
    [CF1131D] Gourmet choice
    [CF1176D] Recover it!
    [CF1205B] Shortest Cycle
    [CF1213G] Path Queries
  • 原文地址:https://www.cnblogs.com/mcxiaobing/p/5907383.html
Copyright © 2011-2022 走看看