在哪里更改要运行的android版本?是在文件中还是在某些界面中?
我的版本是28。
出了什么问题
Configured compileSdkVersion is invalid: 27 (C:/android/platforms/android-27).
答案 0 :(得分:1)
default的jfxmobile
插件将检查27,如果在您的系统上未找到该插件,则会抛出exception并给出一些解释:
throw new GradleException("Configured compileSdkVersion is invalid: ${compileSdkVersion} (${androidSdk}/platforms/android-${compileSdkVersion}).\n
To fix this, you can do one of the following:\n
1. change compileSdkVersion to an installed platform that is available in ${androidSdk}/platforms/\n
2. install the android platform version that matches the configured compileSdkVersion:\n
- from command line run: ${androidSdk}/tools/bin/sdkmanager \"platforms;android-${compileSdkVersion}\"\n
- from Android Studio: see https://developer.android.com/studio/intro/update.html")
在选项1之后,您可以更改compileSdkVersion
,如果已安装版本28,则可以执行以下操作:
jfxmobile {
javafxportsVersion = '8.60.11'
downConfig {
version = '3.8.6'
plugins 'display', '...
}
android {
manifest = 'src/android/AndroidManifest.xml'
compileSdkVersion = 28
buildToolsVersion = '28.0.3'
...
}
}
要了解可以设置的不同属性,请参阅documentation。