2017-03-24 26 views
0

我在Intellij上使用Gluon時遇到了問題我在Android SDK Manager中安裝了所有Teh Packages。並在我的Gluon Project build.gradle中鏈接android SDK Path。Gluon Applicatiopn Error Android支持包

但我拋出這個錯誤的所有時間:

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

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.**.*' 
     ] 
    } 
} 
+0

看看這個[問題](http://stackoverflow.com/questions/42143300/how-can-i-install-android-support-library-to-deploy-a-gluon-mobile-application/ 42143741#42143741) –

回答

0

您必須創建(但如果不存在的話)中的用戶// gradle.properties。 gradle/gradle.properties並添加ANDROID_HOME = PathToAndroidSDK 這是我的ANDROID_HOME = U:/ AndroidStudio。