2017-05-08 1 views
1

이것은 내 첫 번째 게시물입니다. Stackoverflow 및 기타 문제의 원인을 통해 4 일 동안 광범위하게 검색했으며 아직 해결책을 찾지 못했습니다. 이 하나가 내 뇌를 깎아 내고있다. 이클립스 NEON, Gradle을 3.5, JavaFXPorts 1.3.5, 최신 안드로이드 SDKGradle에서 Android 지원 리포지토리를 찾을 수 없습니다 - Eclipse Neon, Gradle 3.5, javafxports

를 사용

윈도우 10의 x64에서 개발

모든 Gradle을 작업이 간단하고, 한 클래스에 "Hello World"프로젝트에 표시되지 예상 . (예 : android, androidRelease, androidInstall 등의 모든 작업이 누락되었습니다).

명령 줄에서 gradlew android를 실행할 수 있으며 Android Support Repository를 찾을 수 없다는 오류가 발생합니다.

AFAIK android SDK 경로가 올바르게 설정되어 있고 Android 지원 리포지토리가 설치되어 있습니다.

"gradlew run"은 데스크톱 버전의 프로젝트를 올바르게 빌드하고 실행한다는 점에 유의하십시오.

다음은 주요 구성 파일과 출력입니다. 요청한대로 다른 것을 게시 할 수 있습니다.

========

gradle.build :

buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'org.javafxports:jfxmobile-plugin:1.3.5' 
    } 
} 

apply plugin: 'org.javafxports.jfxmobile' 

repositories { 
    jcenter() 
} 


dependencies { 
    implementation 'com.google.guava:guava:21.0' 
} 

jfxmobile { 
    android { 
     compileSdkVersion = 25 
     targetSdkVersion = 19 
     minSdkVersion = 17 
    } 
} 

mainClassName = 'Main' 

=======

gradle.properties :

org.gradle.jvmargs=-Xms128m -Xmx1g 
ANDROID_HOME=c/:androidSDK 

= ======

SDK 관리자 --list (reposi 토리)가 설치 :

C:\androidSDK\tools\bin>sdkmanager.bat --list 
Warning: File C:\Users\Kent\.android\repositories.cfg could not be loaded. 
Installed packages: 
    Path        | Version | Description      | Location 
    -------       | ------- | -------       | ------- 
    build-tools;25.0.3    | 25.0.3 | Android SDK Build-Tools 25.0.3 | build-tools\25.0.3\ 
    emulator       | 26.0.0 | Android Emulator     | emulator\ 
    extras;android;m2repository  | 47.0.0 | Android Support Repository  | extras\android\m2repository\ 
    extras;intel;Ha...ecution_Manager | 6.0.6 | Intel x86 Emulator Accelerator... | extras\intel\Ha...cution_Manager\ 
    patcher;v4      | 1  | SDK Patch Applier v4    | patcher\v4\ 
    platform-tools     | 25.0.5 | Android SDK Platform-Tools  | platform-tools\ 
    platforms;android-25    | 3  | Android SDK Platform 25   | platforms\android-25\ 
    sources;android-25    | 1  | Sources for Android 25   | sources\android-25\ 
    tools        | 26.0.2 | Android SDK Tools     | tools\ 

=======

gradlew 안드로이드 출력 :

C:\Users\Kent\workspace\TestJavaFXPorts3>gradlew android 
Starting a Gradle Daemon (subsequent builds will be faster) 

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: 7.627 secs 

=======

안드로이드 SDK 디렉토리 :

C:\androidSDK>dir 
Volume in drive C is Acer 
Volume Serial Number is C492-4415 

Directory of C:\androidSDK 

2017-05-06 08:55 PM <DIR>   . 
2017-05-06 08:55 PM <DIR>   .. 
2017-05-08 06:27 PM    16 .knownPackages 
2017-05-06 08:54 PM <DIR>   build-tools 
2017-05-06 08:42 PM <DIR>   emulator 
2017-05-08 06:27 PM <DIR>   extras 
2017-05-06 08:47 PM <DIR>   licenses 
2017-05-06 08:42 PM <DIR>   patcher 
2017-05-06 08:42 PM <DIR>   platform-tools 
2017-05-06 08:56 PM <DIR>   platforms 
2017-05-06 08:49 PM <DIR>   sources 
2017-05-06 08:43 PM <DIR>   tools 
+0

이 [답변] 참조 (http://stackoverflow.com/a/42143741/3956070)에 대한 Android Support Repository와 이클립스에서 gradle 작업을 보여주는이 [one] (http://stackoverflow.com/a/40358734/3956070). –

+0

호세 고마워. 나는 여기서 많은 연구를하고 많은 일을 시도했지만 multidex - *. aar에 관한 첫 번째 게시물을 보지 못했습니다. 나는 이것을 시도 할 것이다. 필자는 이클립스에서 나타나는 것에 대해 덜 우려하고있다. 다른 모든 작업을 할 수 있다면 커맨드 라인에서 빌드를 돌리는 것도 괜찮다. 감사! –

+0

약속대로, 다른 사람에게 도움이 될 경우를 대비하여 다른 파일을 게시하거나 다른 사람에게 알릴 수있는 다른 설정 문제가 있습니다. –

답변

1

@ JoséPereda가 내 문제를 해결했습니다. 다음 주석에 : androidSDK이어야 C :

나는 ANDROID_HOME = C/평균/androidSDK - 호세 페레가

관련 문제