【发布时间】:2020-03-13 06:09:42
【问题描述】:
我正在使用 MacBook Pro.. 我是 React Native 的新手.. 创建项目后我在 iOS 设备上运行它正在运行.. 同时当我在 Android 设备上运行时意味着我收到此错误.. 任何一个请帮我解决这个错误。我使用 Visual Studio Code IDE 来处理本机应用程序
提前致谢..
错误详情:
[Info] local.properties file doesn't exist. Using Android SDK location from PATH.
[Info] Starting React Native Packager.
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 864 file(s) to forward-jetify. Using 8 workers...
/bin/sh: adb: command not found
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...
FAILURE: Build failed with an exception.
* Where:
Settings file '/Users/manikandan/AwesomeProject/android/settings.gradle'
* What went wrong:
Could not compile settings file '/Users/manikandan/AwesomeProject/android/settings.gradle'.
startup failed:
General error during semantic analysis: Unsupported class file major version 57
【问题讨论】:
-
您在这里错过了 local.properties 文件。从 android studio 打开项目并清理并构建
标签: android ios react-native androidx mobile-application