2017-01-02 4 views
2

Androidを実行してAndroid携帯にGluonアプリをデプロイした後に、画像の中に、私は設定 'androidRuntimeNoRetrolambdaCopy'のすべての依存関係を解決できませんでした。 com.android.support:multidex:1.0.1

問題はルートプロジェクトを設定発生し、このエラーを持っているよう

org/controlsfx/control/spreadsheet/SpreadsheetColumn$$Lambda$1 
Saving lambda class: org/controlsfx/control/textfield/TextFields$$Lambda$1 
:mergeClassesIntoJar 
FAILURE: Build failed with an exception. 

* What went wrong: 
Failed to capture snapshot of input files for task 'mergeClassesIntoJar' during up-to-date check. 
> java.io.FileNotFoundException: /Users/yotti/Library/Android/sdk/extras/android/support/multidex/library/libs/android-support-multidex.jar (No such file or directory) 

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

更新後JFXPlugin「SingleViewProject」:私はこのエラーを持っています。

Could not resolve all dependencies for configuration ':androidRuntimeNoRetrolambdaCopy'. Could not find com.android.support:multidex:1.0.1. Searched in the following locations: https://jcenter.bintray.com/com/android/support/multidex/1.0.1/multidex-1.0.1.pom https://jcenter.bintray.com/com/android/support/multidex/1.0.1/multidex-1.0.1.jar https://oss.sonatype.org/content/repositories/snapshots/com/android/support/multidex/1.0.1/multidex-1.0.1.pom https://oss.sonatype.org/content/repositories/snapshots/com/android/support/multidex/1.0.1/multidex-1.0.1.jar Required by: :SingleViewProject:unspecified

enter image description here

+0

ウイルス対策が有効になっているかどうかを確認し、問題の原因となるdexファイルを削除してください。 –

+0

この[質問](http://stackoverflow.com/questions/41133317/javafxports-android-gradle-task-requires-android-support-library-which-is-re)を確認してください。おそらく 'jfxplugin'のバージョンを1.3.1に更新して、クリーンアップしてプロジェクトをリロードし、ビルドを再開するだけです。 @KrunalKapadiya。 –

+0

私はMacを使います。私はアンチウイルスがありません –

答えて

1

それは、すでにこのquestionで言及されたが、Androidの時代遅れのライブラリAndroid Support Libraryは使用できなくなります。

jfxmobileプラグインバージョン1.3.1を使用すると、ここに表示されるべきmultidexライブラリ(ANDROID_HOME/extras/android/m2repository/com/android/support/multidex/1.0.1/multidex-1.0.1.aar)が使用されるため、この問題は解決されます。

Android SDKマネージャーのExtras/Google RepositoryとExtras/Android Support Repositoryの両方にインストールする必要があります。 > jfxmobile - - >アンドロイド - > androidSdk

ANDROID_HOME=/Users/yotti/Library/Android/sdk 
とbuild.gradleに行を削除します。

はまた/Users/<user>/.gradle/gradle.propertiesの下で、ANDROID_HOME変数とプロパティファイルを作成することをお勧めします。

は、あなたが間違ったリポジトリを使用しているチャームの依存関係については、次のものが必要です。

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

最後に、あなたがControlsFX依存性を示さない、最初に投稿された例外を持ってすることはできませんので、場所。

+0

Pereda –

関連する問題