Jos*_*eGE 7 java gradle android-studio react-native react-native-image-picker
当尝试在 Windows 计算机上运行我的项目时,它无法正常工作,它可以在我的 macOS 上运行,但在 Windows 上运行时会抛出以下错误:
Task :react-native-image-picker:compileDebugJavaWithJavac FAILED
Run Code Online (Sandbox Code Playgroud)
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
^
symbol: variable TIRAMISU
location: class VERSION_CODES
Run Code Online (Sandbox Code Playgroud)
运行它npx react-native run-android
build.gradle
有以下内容:
buildscript {
ext {
buildToolsVersion = "30.0.3"
minSdkVersion = 30
compileSdkVersion = 30
targetSdkVersion = 30
ndkVersion = "20.1.5948944"
}
Run Code Online (Sandbox Code Playgroud)
一直在尝试更改我安装的所有内容的数量,29
以及minSdk 、buildTools、编译30
和目标,但没有任何效果。31
33
目前,拥有节点 14 和 JDK 11
当我使用 33 时,错误更改为以下之一:
Task :react-native-webview:compileDebugJavaWithJavac FAILED
Run Code Online (Sandbox Code Playgroud)
已经尝试过多次./gradlew clean
有人知道发生了什么事吗?我缺少什么?
归档时间: |
|
查看次数: |
12017 次 |
最近记录: |