2
내가 Jgrapht 라이브러리를 사용하는 것을 시도하고 있지만 람다 필요에 방법 버전()를 호출 할 수 없습니다 응용 프로그램여기 <p></p> 내 코드의 ... 널 객체
apply plugin: "me.tatarka.retrolambda" version "3.3.0"
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "24.0.3"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "it.univpm.gruppoids.iotforemergencyandnavigation"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
jackOptions {
enabled true
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.journeyapps:zxing-android-embedded:[email protected]'
compile 'com.google.zxing:core:3.2.1'
compile 'org.jgrapht:jgrapht-core:1.0.0'
}
오류 : (1, 0) null 개체에서 메서드 버전()을 호출 할 수 없습니다. 파일 열기 오류는 어디에서 무엇입니까? 덕분에
두 번째 형식에서는'classpath'가 필요하지 않습니다. – weston
_ "buildscript' 스크립트 블록과'apply' 문을 결합하는 대신 두 문을'plugins' 스크립트 블록으로 바꿀 수 있습니다. _ 저는 이것을 질문에"예 "라고 해석합니다. 하지만이 구문을 직접 사용하지 않았으므로 확실하게 말할 수는 없습니다. – Michael