gpt4 book ai didi

android - Facebook 字符串没有默认翻译

转载 作者:IT老高 更新时间:2023-10-28 22:21:52 28 4
gpt4 key购买 nike

我今天在尝试运行附加了 Facebook SDK 的应用时遇到此错误。

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

我试图找出原因,但我并没有尝试要求除英语之外的另一种字符串语言。在需要的情况下,这是我的应用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'

这是我的 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
}

谢谢!

最佳答案

(截至 2017 年 7 月 11 日)

回滚到以前的版本,即 4.23.0,似乎工作正常。即

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

最新版本 4.24.0 在 Android 和 iOS 上似乎在很多方面都存在问题。

关于android - Facebook 字符串没有默认翻译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44938052/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com