尝试在 Android 中构建 React Native 项目时收到以下错误。解决方法如下: 1. Manifest.XML 中的“tools:replace="android:appComponentFactory"” 和 android.useAndroidX=true, android.enableJetifier=true 不起作用
> Task :app:processDebugManifest FAILED /Users/infinitesolution/Desktop/Infinite-Master/Projects/ReactNative/Ruci/android/app/src/debug/AndroidManifest.xml:22:18-91 Error:
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:7:5-117 to override.
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':app:processDebugManifest'.
> 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 …Run Code Online (Sandbox Code Playgroud) Vinods-Mac-mini-2:~ vinod$ cd desktop
Vinods-Mac-mini-2:desktop vinod$ git clone https://github.com/box/box-ios-sdk-sample-app.git
Cloning into 'box-ios-sdk-sample-app'...
remote: Counting objects: 158, done.
remote: Compressing objects: 100% (87/87), done.
remote: Total 158 (delta 76), reused 143 (delta 63)
Receiving objects: 100% (158/158), 70.79 KiB | 83 KiB/s, done.
Resolving deltas: 100% (76/76), done.
Vinods-Mac-mini-2:desktop vinod$ cd box-ios-sdk-sample-app
Vinods-Mac-mini-2:box-ios-sdk-sample-app vinod$ git submodule init
Submodule 'vendor/BoxSDK' (git@github.com:box/box-ios-sdk-private.git) registered for path 'vendor/BoxSDK'
Vinods-Mac-mini-2:box-ios-sdk-sample-app vinod$ git submodule update
Cloning into 'vendor/BoxSDK'...
Permission denied (publickey).
fatal: Could not read from remote …Run Code Online (Sandbox Code Playgroud)