gpt4 book ai didi

java - Android Update 3后Android资源链接失败

转载 作者:太空宇宙 更新时间:2023-11-04 09:30:36 25 4
gpt4 key购买 nike

Android SDK 28+ 更新后,我将 gradle 更新到版本 5.5.1,将 gradle 插件更新到 3.4.2我收到以下错误,这非常令人恼火,因为我不认为我的代码是错误的!

“Android资源链接失败警告:删除资源 com.anirudh.gighub:string/com_facebook_loginview_logged_in_using_facebook_f1gender 且没有所需的默认值。

F:\gigHub\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1437:错误:找不到资源 dimen/smallTxtSize(又名 com.anirudh.gighub:dimen/smallTxtSize)。

F:\gigHub\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1438:错误:找不到资源drawable/facebook_signin_btn(又名com.anirudh.gighub:drawable/facebook_signin_btn)。错误:链接引用失败。”

Here is the build.gradle

//noinspection GradleCompatible
apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.anirudh.gighub"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
testImplementation 'junit:junit:4.13-beta-3'
implementation 'com.google.firebase:firebase-auth:18.1.0'
implementation 'com.facebook.android:facebook-login:5.0.1'
implementation 'com.github.ybq:Android-SpinKit:1.2.0'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}


Here is the App Manifest file:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.anirudh.gighub">

<uses-permission android:name="android.permission.INTERNET"/>

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:appComponentFactory"
android:appComponentFactory="whateverString">

<activity android:name=".MainActivity">
</activity>
<activity android:name=".Register" />
<activity android:name=".SplashScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id"/>

<activity android:name="com.facebook.FacebookActivity"
android:configChanges=
"keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name" />
<activity
android:name="com.facebook.CustomTabActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/fb_login_protocol_scheme" />
</intent-filter>
</activity>

</application>

</manifest>*

最佳答案

尝试文件 -> 使缓存无效/重新启动 -> 无效并重新启动

关于java - Android Update 3后Android资源链接失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57138435/

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