android - A issue occurred evaluating project ':ActionBarSherlock' -
when try sync project got below error ,what wrong in gradle file
error: problem occurred evaluating project ':actionbarsherlock'.
failed apply plugin [id 'com.android.library'] plugin id 'com.android.library' not found.
build.gradle:
apply plugin: 'com.android.library' dependencies { compile filetree(dir: 'libs', include: '*.jar') } android { compilesdkversion 17 buildtoolsversion "23.0.0" sourcesets { main { manifest.srcfile 'androidmanifest.xml' java.srcdirs = ['src'] resources.srcdirs = ['src'] aidl.srcdirs = ['src'] renderscript.srcdirs = ['src'] res.srcdirs = ['res'] assets.srcdirs = ['assets'] } // move tests tests/java, tests/res, etc... instrumenttest.setroot('tests') // move build types build-types/<type> // instance, build-types/debug/java, build-types/debug /androidmanifest.xml, ... // moves them out of them default location under src/<type>/... // conflict src/ being used main source set. // adding new build types or product flavors should accompanied // similar customization. debug.setroot('build-types/debug') release.setroot('build-types/release') } }
Comments
Post a Comment