首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gluon Applicatiopn错误Android支持包

Gluon Applicatiopn错误Android支持包
EN

Stack Overflow用户
提问于 2017-03-25 01:12:12
回答 1查看 462关注 0票数 0

我在Intellij上遇到了Gluon的问题,我在Android SDK管理器中安装了所有的软件包。并在我的Gluon项目build.gradle中链接了android SDK路径。

但是我总是抛出这个错误:

代码语言:javascript
复制
FAILURE: Build failed with an exception.

* What went wrong:
You must install the Android Support Repository. Open the Android SDK Manager and choose the Android Support Repository from the Extras category at the bottom of the list of packages.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 0.386 secs
You must install the Android Support Repository. Open the Android SDK Manager and choose the Android Support Repository from the Extras category at the bottom of the list of packages.
18:06:45: External task execution finished 'androidInstall'.

这是我的build.gradle

代码语言:javascript
复制
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'org.javafxports:jfxmobile-plugin:1.3.4'
    }
}

apply plugin: 'org.javafxports.jfxmobile'

repositories {
    jcenter()
    maven {
        url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
    }
}

mainClassName = 'me.gentlexd.gluon.Main'

dependencies {
    compile 'com.gluonhq:charm:4.3.1'
    androidRuntime 'com.gluonhq:charm-android:4.3.1'
    iosRuntime 'com.gluonhq:charm-ios:4.3.1'
    desktopRuntime 'com.gluonhq:charm-desktop:4.3.1'
}

jfxmobile {
    downConfig {
        version = '3.2.4'
        // Do not edit the line below. Use Gluon Mobile Settings in your project context menu instead
        plugins 'display', 'lifecycle', 'statusbar', 'storage'
    }
    android {
        manifest = 'src/android/AndroidManifest.xml'
        androidSdk = "F:/Android"
    }
    ios {
        infoPList = file('src/ios/Default-Info.plist')
        forceLinkClasses = [
                'com.gluonhq.**.*',
                'javax.annotations.**.*',
                'javax.inject.**.*',
                'javax.json.**.*',
                'org.glassfish.json.**.*'
        ]
    }
}
EN

回答 1

Stack Overflow用户

发布于 2017-03-25 03:32:45

您必须在Users//.gradle/gradle.properties中创建(如果不存在) gradle.properties,并添加ANDROID_HOME=PathToAndroidSDK This is my ANDROID_HOME=U:/AndroidStudio。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43005401

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档