【发布时间】:2021-12-26 16:45:32
【问题描述】:
当我尝试使用 VS Code 中的命令运行代码但没有在其上运行代码时,模拟器可以正常打开。出了点问题,我无法解决。请帮忙! 以下是错误-
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
(node:7884) 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 870 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
FAILURE: Build failed with an exception.
* Where:
Settings file 'D:\OLA\OlaProject\android\settings.gradle'
* What went wrong:
Could not compile settings file 'D:\OLA\OlaProject\android\settings.gradle'.
> startup failed:
General error during semantic analysis: Unsupported class file major version 60
settings.gradle
rootProject.name = 'OlaProject'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
gradle.properties
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.99.0
【问题讨论】:
标签: react-native visual-studio-code android-emulator