Android Studio Error: (8, 0) Plugin with id 'android' not found -
i have installed android studio (0.6.1) on os x (10.9.3) , gradle 1.1 using brew (brew install gradle). however, can't first hello world! project... please help me solve issue
build.gradle:
buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:0.11.+' } } apply plugin: 'android' repositories { mavencentral() } android { compilesdkversion 19 buildtoolsversion '19.1' defaultconfig {} productflavors {} } dependencies { } error message:
error:(8, 0) plugin id 'android' not found.
getting build failed exception android studio 0.4.3 , 0.4.4 post , android studio: plugin id 'android-library' not found post not solves problem...
second post linked returns error message:
error:the project using unsupported version of gradle. please utilize version 1.10. please point supported gradle version in project's gradle settings or in project's gradle wrapper (if applicable.) prepare gradle wrapper , re-import project gradle settings
it seems have missed add together android gradle plugin dependency in dependencies block.
replace top buildscript section , sync project gradle
buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:0.11.+' } } apply plugin: 'android' android { compilesdkversion 19 buildtoolsversion '19.1.0' defaultconfig { applicationid 'your_app_package' minsdkversion 9 targetsdkversion 17 } buildtypes { release { runproguard false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' } } productflavors { } } dependencies { } android android-studio
No comments:
Post a Comment