3
我在this question中找到了一些幫助。所以我知道我必須按順序使用JDK7的單元測試工作。所以,我想出了一個構建sript這樣的:將單元測試添加到NetBeans中的JavaFXPorts項目 - 問題與Retrolambda
buildscript
{
repositories
{
jcenter()
}
dependencies
{
classpath 'org.javafxports:jfxmobile-plugin:1.0.8'
}
}
retrolambda.oldjdk = 'C:/Program Files/Java/jdk1.7.0_79'
apply plugin: 'org.javafxports.jfxmobile'
apply plugin: 'java'
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
jcenter()
}
dependencies
{
testCompile 'junit:junit:4.12'
}
mainClassName = 'AppMain'
jfxmobile
{
javafxportsVersion = '8.60.7'
android
{
applicationPackage = 'com.somename.someapplication'
androidSdk = 'C:/Program Files (x86)/Android/android-sdk' //
}
}
但我不斷收到此異常:
Could not get unknown property 'retrolambda' for root project
任何關於如何解決這個問題的想法?