gluon插件netbean android版

问题描述 投票:0回答:1

在哪里更改Android版本运行?它在文件中还是在某个界面中?

我的版本是28。

什么地方出了错:

Configured compileSdkVersion is invalid: 27 (C:/android/platforms/android-27).
netbeans-8 gluon
1个回答
1
投票

jfxmobiledefault插件将检查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

© www.soinside.com 2019 - 2024. All rights reserved.