首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >反应--原生运行-android‘给出“构建失败”

反应--原生运行-android‘给出“构建失败”
EN

Stack Overflow用户
提问于 2022-05-30 15:50:53
回答 1查看 859关注 0票数 0

我正试图在Android的虚拟设备上构建一个应用程序。我遵循了所有这些步骤,https://reactnative.dev/docs/environment-setup和我运行虚拟设备之前,运行“反应-本机启动”和“反应-本机运行-android”。

react-native start是成功的,但是当我运行react-native run-android时会出现以下错误

代码语言:javascript
复制
warn Package expo-modules-core has been ignored because it contains invalid configuration. Reason: "dependency.platforms.ios" must be of type object
warn Package react-native-reanimated has been ignored because it contains invalid configuration. Reason: Cannot find module 'react-native-reanimated\package.json'
Require stack:
 *[...]*
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
(node:43872) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
Jetifier found 1883 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
The system cannot find the path specified.
info Launching emulator...
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
?? react-native-unimodules is deprecated in favor of expo
?? Follow this guide to migrate: https://expo.fyi/expo-modules-migration


> Configure project :expo

> Configure project :react-native-firebase_app
*[...]*

> Configure project :react-native-firebase_auth
*[...]*

> Configure project :react-native-firebase_firestore
*[...]*

> Configure project :react-native-firebase_messaging
*[...]*

> Configure project :react-native-mmkv
*[...]*
unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> 
*[...]*
unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}api-level>
*[...]*
unexpected element (uri:"", local:"base-extension"). Expected elements are <{}vendor>,<{}codename>,<{}abi>,<{}api-level>,<{}tag>
*[...]*
unexpected element (uri:"", local:"base-extension"). Expected elements are <{}vendor>,<{}codename>,<{}abi>,<{}api-level>,<{}tag>

> Task :expo:compileDebugKotlin FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings
178 actionable tasks: 3 executed, 175 up-to-date
Error: `expo-modules-core` project is not included by autolinking.
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (6, 21): Unresolved reference: core
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (9, 31): Unresolved reference: ApplicationLifecycleListener
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (12, 66): Unresolved reference: ApplicationLifecycleListener
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (14, 16): Type mismatch: inferred type is Unit but Iterable<TypeVariable(R)> was expected
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (14, 21): Unresolved reference: createApplicationLifecycleListeners   
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (15, 27): Unresolved reference: it
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (10, 21): Unresolved reference: adapters
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (11, 21): Unresolved reference: core
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (12, 21): Unresolved reference: core
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (17, 31): Unresolved reference: ModuleRegistryAdapter
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (26, 33): Unresolved reference: ModulePriorities
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (16, 21): Unresolved reference: core
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (24, 14): Type mismatch: inferred type is Unit but Iterable<TypeVariable(R)> was expected
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (24, 19): Unresolved reference: createReactActivityLifecycleListeners   
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (26, 14): Type mismatch: inferred type is Unit but Iterable<TypeVariable(R)> was expected
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (26, 19): Unresolved reference: createReactActivityHandlers
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (37, 21): Unresolved reference: it
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (76, 37): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (83, 37): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (89, 37): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (96, 37): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (120, 12): Unresolved reference: ReactActivityLifecycleListener
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (128, 14): Unresolved reference: it
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (22, 14): Type mismatch: inferred type is Unit but Iterable<TypeVariable(R)> was expected
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (22, 19): Unresolved reference: createReactNativeHostHandlers
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (27, 29): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (32, 21): Unresolved reference: it
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (35, 29): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (66, 21): Unresolved reference: it
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (72, 21): Unresolved reference: it
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (94, 31): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':expo:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 52s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Error: `expo-modules-core` project is not included by autolinking.
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (6, 21): Unresolved reference: core
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (9, 31): Unresolved reference: ApplicationLifecycleListener
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (12, 66): Unresolved reference: ApplicationLifecycleListener
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (14, 16): Type mismatch: inferred type is Unit but Iterable<TypeVariable(R)> was expected
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (14, 21): Unresolved reference: createApplicationLifecycleListeners   
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (15, 27): Unresolved reference: it
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (10, 21): Unresolved reference: adapters
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (11, 21): Unresolved reference: core
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (12, 21): Unresolved reference: core
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (17, 31): Unresolved reference: ModuleRegistryAdapter
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (26, 33): Unresolved reference: ModulePriorities
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (16, 21): Unresolved reference: core
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (24, 14): Type mismatch: inferred type is Unit but Iterable<TypeVariable(R)> was expected
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (24, 19): Unresolved reference: createReactActivityLifecycleListeners   
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (26, 14): Type mismatch: inferred type is Unit but Iterable<TypeVariable(R)> was expected
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (26, 19): Unresolved reference: createReactActivityHandlers
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (37, 21): Unresolved reference: it
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (76, 37): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (83, 37): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (89, 37): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (96, 37): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (120, 12): Unresolved reference: ReactActivityLifecycleListener
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (128, 14): Unresolved reference: it
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (22, 14): Type mismatch: inferred type is Unit but Iterable<TypeVariable(R)> was expected
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (22, 19): Unresolved reference: createReactNativeHostHandlers
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (27, 29): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (32, 21): Unresolved reference: it
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (35, 29): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (66, 21): Unresolved reference: it
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (72, 21): Unresolved reference: it
e: C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (94, 31): Overload resolution ambiguity:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':expo:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 52s

    at makeError (C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\execa\index.js:174:9)
    at C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\execa\index.js:278:16    
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async runOnAllDevices (C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5)
    at async Command.handleAction (C:\Users\Oroni\Documents\Lets-Go-main\Lets-Go-main\LetsGo-React-Native\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:186:9)
info Run CLI with --verbose flag for more details.

在这一点上,我非常困惑--我不知道:expo:compileDebugKotlin错误是从哪里来的,也不知道如何解决它,我也不知道为什么这些错误说当我已经打开设备时,它们没有启动模拟器。任何帮助都是非常感谢的!

注:我有太多的字符,所以我用.在错误消息中替换列出的一组文件。

EN

Stack Overflow用户

发布于 2022-05-30 17:35:01

请检查React本机文档中的SDK版本设置。您需要选择与文档中提到的SDK完全相同的版本,否则生成将失败。

如果这个问题仍然存在,请告诉我。

票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72436999

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档