Saya sudah mencoba untuk membuat ActionBarSherlock bekerja dan mengalami beberapa masalah. Satu masalah yang saya temui adalah pesan berikut ketika mencoba membangunnya:
Plugin with id 'android-library' not found
Secara khusus:
D:\Projects\Android\actionbarsherlock>D:\Projects\Android\gradlew --info build
Starting Build
Settings evaluated using empty settings script.
Projects loaded. Root project using build file
'D:\Projects\Android\actionbarsherlock\build.gradle'.
Included projects: [root project 'actionbarsherlock']
Evaluating root project 'actionbarsherlock' using build file
'D:\Projects\Android\actionbarsherlock\build.gradle'.
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\Projects\Android\actionbarsherlock\build.gradle' line: 1
* What went wrong:
A problem occurred evaluating root project 'actionbarsherlock'.
> Plugin with id 'android-library' not found.
Saya memperlakukan ini sebagai masalah ABS di utas terpisah, jadi di sini saya ingin tahu bagaimana mengatasi masalah umum:
Plugin with id 'android-library' not found
Inilah build.gradle:
apply plugin: 'android-library'
dependencies {
compile 'com.android.support:support-v4:18.0.+'
}
android {
compileSdkVersion 14
buildToolsVersion '17.0.0'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}
Bisakah kamu menolong?