hyu*_*yoo 8 android android-manifest firebase android-gradle-plugin
我在构建 Android 应用程序时收到来自编译器的警告。
activity com.google.firebase.auth.internal.FederatedSignInActivity@android:launchMode
was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present
Run Code Online (Sandbox Code Playgroud)
这是我目前对 firebase 的依赖。
implementation 'com.google.firebase:firebase-core:17.2.1'
implementation 'com.google.firebase:firebase-analytics:17.2.1'
implementation 'com.google.firebase:firebase-auth:19.2.0'
implementation 'com.google.firebase:firebase-config:19.0.3'
implementation 'com.google.firebase:firebase-messaging:20.0.1'
Run Code Online (Sandbox Code Playgroud)
你知道如何修复警告吗?
hyu*_*yoo 10
请尝试在 AndroidManifest.xml 中输入此代码。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
...>
<activity
android:name="com.google.firebase.auth.internal.FederatedSignInActivity"
tools:replace="android:launchMode"
android:launchMode="standard" />
...
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5219 次 |
| 最近记录: |