Facebook字符串没有默认翻译 [英] Facebook strings has no default translation

查看:252
本文介绍了Facebook字符串没有默认翻译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我得到了这个错误,试图运行一个附带Facebook SDK的应用程序。

 警告:字符串'com_facebook_smart_login_confirmation_continue_as_f1gender'没有默认翻译。 
警告:字符串'com_facebook_loginview_log_out_action_f1gender'没有默认翻译。
警告:字符串'com_facebook_loginview_log_in_button_continue_f1g​​ender'没有默认翻译。
警告:字符串'com_facebook_smart_login_confirmation_continue_as_m2gender'没有默认翻译。
警告:字符串'com_facebook_loginview_log_out_button_m2gender'没有默认翻译。
警告:字符串'com_facebook_loginview_log_out_action_m2gender'没有默认翻译。
警告:字符串'com_facebook_share_button_text_m2gender'没有默认翻译。
警告:字符串'com_facebook_loginview_logged_in_as_f1gender'没有默认翻译。
警告:字符串'com_facebook_send_button_text_m2gender'没有默认翻译。
警告:字符串'com_facebook_smart_login_confirmation_cancel_m2gender'没有默认翻译。
警告:字符串'com_facebook_loginview_logged_in_using_facebook_m2gender'没有默认翻译。
警告:字符串'com_facebook_loginview_log_out_button_f1gender'没有默认翻译。
警告:字符串'com_facebook_send_button_text_f1gender'没有默认翻译。
警告:字符串'com_facebook_loginview_logged_in_as_m2gender'没有默认翻译。
警告:字符串'com_facebook_smart_login_confirmation_cancel_f1gender'没有默认翻译。
警告:字符串'com_facebook_loginview_logged_in_using_facebook_f1gender'没有默认翻译。
警告:字符串'com_facebook_share_button_text_f1gender'没有默认翻译。
警告:字符串'com_facebook_loginview_log_in_button_continue_m2gender'没有默认翻译。
警告:字符串'com_facebook_smart_login_confirmation_title_f1g​​ender'没有默认翻译。
警告:字符串'com_facebook_smart_login_confirmation_title_m2gender'没有默认翻译。
警告:字符串'com_facebook_tooltip_default_f1gender'没有默认翻译。
警告:字符串'com_facebook_tooltip_default_m2gender'没有默认翻译。
错误:将字节码转换为dex时出错:
原因:java.lang.RuntimeException:异常解析类
错误:1错误;中止
错误:任务':app:transformClassesWithDexForDebug'的执行失败。
> com.android.build.api.transform.TransformException:java.lang.RuntimeException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException:返回代码1的dex进程
信息:BUILD FAILED

我试图弄清楚为什么但我没有试图要求另一种字符串语言而不是英语。在需要的情况下,这是我的应用Gradle:

  apply plugin:'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion25.0.2
defaultConfig {
applicationId.chillout
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName1.0
testInstrumentationRunnerandroid.support.test.runner.AndroidJUnitRunner
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
}
}
}

依赖项{
compile fileTree(dir:'libs',include:['* .jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',{
排除组:'com.android.support',模块:'support-annotations'
})
compile'c​​om.android.support:appcompat-v7:25.1.1'
compile'c​​om.android.support:design:25.3.1'
compile'c​​om.github.bumptech.glide:glide: 3.7.0'
compile'c​​om.google.firebase:firebase-database:10.0.0'
compile'c​​om.google.firebase:firebase-storage:10.0.0'
compile' com.google.firebase:firebase-messaging:10.0.0'
compile'c​​om.facebook.android:facebook-android-sdk:[4,5)'
compile'c​​om.firebaseui:firebase- ui-database:1.2.0'
compile'c​​om.android.support:cardview-v7:25.3.0'
compile'c​​om.android.support.constraint:constraint-layout:1.0.2'
testCompile'junit:junit:4.12'
}
apply plugin:'com.google.gms.google-services'

这是我的项目Gradle。

  //顶级构建文件,您可以在其中添加所有子项目/模块通用的配置选项。 

buildscript {
repositories {
jcenter()
mavenCentral()
}
依赖关系{
classpath'com.android .tools.build:gradle:2.3.3'
classpath'com.google.gms:google-services:3.0.0'

//注意:不要将您的应用程序依赖关系放在这里;它们属于单个模块build.gradle文件
//
}
}

allprojects {
存储库{
jcenter {




任务清理(类型:删除){
删除rootProject.buildDir
}

$ b $ p
$ p

解决方案

(截至2017年7月11日)

回滚到之前版本4.23.0,似乎工作正常。 Ie

  compile'c​​om.facebook.android:facebook-android-sdk:4.23.+'

最新版本4.24.0在Android和iOS上似乎都有许多问题。


I got this error today trying to run an app with Facebook SDK attached into it.

Warning:string 'com_facebook_smart_login_confirmation_continue_as_f1gender' has no default translation.
Warning:string 'com_facebook_loginview_log_out_action_f1gender' has no default translation.
Warning:string 'com_facebook_loginview_log_in_button_continue_f1gender' has no default translation.
Warning:string 'com_facebook_smart_login_confirmation_continue_as_m2gender' has no default translation.
Warning:string 'com_facebook_loginview_log_out_button_m2gender' has no default translation.
Warning:string 'com_facebook_loginview_log_out_action_m2gender' has no default translation.
Warning:string 'com_facebook_share_button_text_m2gender' has no default translation.
Warning:string 'com_facebook_loginview_logged_in_as_f1gender' has no default translation.
Warning:string 'com_facebook_send_button_text_m2gender' has no default translation.
Warning:string 'com_facebook_smart_login_confirmation_cancel_m2gender' has no default translation.
Warning:string 'com_facebook_loginview_logged_in_using_facebook_m2gender' has no default translation.
Warning:string 'com_facebook_loginview_log_out_button_f1gender' has no default translation.
Warning:string 'com_facebook_send_button_text_f1gender' has no default translation.
Warning:string 'com_facebook_loginview_logged_in_as_m2gender' has no default translation.
Warning:string 'com_facebook_smart_login_confirmation_cancel_f1gender' has no default translation.
Warning:string 'com_facebook_loginview_logged_in_using_facebook_f1gender' has no default translation.
Warning:string 'com_facebook_share_button_text_f1gender' has no default translation.
Warning:string 'com_facebook_loginview_log_in_button_continue_m2gender' has no default translation.
Warning:string 'com_facebook_smart_login_confirmation_title_f1gender' has no default translation.
Warning:string 'com_facebook_smart_login_confirmation_title_m2gender' has no default translation.
Warning:string 'com_facebook_tooltip_default_f1gender' has no default translation.
Warning:string 'com_facebook_tooltip_default_m2gender' has no default translation.
Error:Error converting bytecode to dex:
Cause: java.lang.RuntimeException: Exception parsing classes
Error:1 error; aborting
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Return code 1 for dex process
Information:BUILD FAILED

I'm trying to figure out why but I didn't try to ask for another string language than English. In the case of need, this is my app Gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId ".chillout"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.1.1'
    compile 'com.android.support:design:25.3.1'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.google.firebase:firebase-database:10.0.0'
    compile 'com.google.firebase:firebase-storage:10.0.0'
    compile 'com.google.firebase:firebase-messaging:10.0.0'
    compile 'com.facebook.android:facebook-android-sdk:[4,5)'
    compile 'com.firebaseui:firebase-ui-database:1.2.0'
    compile 'com.android.support:cardview-v7:25.3.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

And this is my project Gradle.

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter {
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Thank you!

解决方案

(As of July 11, 2017)

Roll back to the previous version, which is 4.23.0, seems to be working fine. I.e.

    compile 'com.facebook.android:facebook-android-sdk:4.23.+'

The latest release 4.24.0 seems to be problematic in many ways on both Android and iOS.

这篇关于Facebook字符串没有默认翻译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆