Build Gradleを編集して、RecyclerView/CartViewライブラリを使用できるようにしたいです。
appのBuild Gradleを下記のように編集して実行すると以下のエラーが出てしまいます。
どこがいけないのでしょうか。。。
ご伝授願います。
apply
1 2android { 3 compileSdkVersion 22 4 buildToolsVersion "22.0.1" 5 6 defaultConfig { 7 applicationId "com.anbayasiroulette" 8 minSdkVersion 16 9 targetSdkVersion 22 10 versionCode 1 11 versionName "1.0" 12 } 13 buildTypes { 14 release { 15 minifyEnabled false 16 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 } 18 } 19 20 buildscript { 21 repositories { 22 jcenter() 23 } 24 25 } 26} 27 28dependencies { 29 compile fileTree(dir: 'libs', include: ['*.jar']) 30 compile 'com.android.support:appcompat-v7:22.0.0' 31 compile 'com.android.support:recyclerview-v7:22.0.0' 32 compile 'com.android.support:cartview-v7:22.0.0' 33}
エラー文章
Gradle project sync failed.Basic functionality will not work properly
エラー :(9, 0) Gradle DSL method not found: 'compile()'
Possible causes:<ul><li>The project 'AnbayasiRoulette' may be using a version of Gradle that does not contain the method.
<a href="openGradleSettings">Gradle settings</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
あなたの回答
tips
プレビュー