社区
我正在更新旧的android应用程序,并且我面临admob的问题。特别是当我更新admob库时,出现清单合并失败错误,如果我不更新admob库,则无法使用AdMob原生广告。所以需要使用新的admob库,所以我应该怎么做。
这是我得到的错误!
/**
* Rules for User registration
*
* @var array
*/
protected $rules = [
'name' => 'required|string',
'role' =>'required|integer|in:3,4,5,6',
'email' => 'required|string|email|max:255|unique:users',
'password' => 'required|string|min:6|confirmed|regex:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{6,}$/'
];
/**
* Messages for User registration
*
* @var array
*/
protected $messages = [
'password.regex' => 'Your password must be 6 characters long, should contain at-least 1 Uppercase, 1 Lowercase, 1 Numeric and 1 special character.'
];
我尝试添加此行'tools:replace =“ adnroid.appComponentFactory”,但是这样做之后,清单中出现了多个错误
我还尝试使用17之类的旧库版本,错误消失了,但原生广告无法解决
获取媒体内容并设置媒体内容
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:10:5-93:19 to override.