イタリックテキスト 有山佳二氏著作の本に従ってコードを書いていますが、ビルドグレードルにどうしてもエラーが出てしまい、
どう調べても自己解決できなかったので、こちらのエラーがわかる方がいらっしゃったらご教示お願いしたいです。
plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-android-extensions' id 'kotlin-kapt' } android { compileSdkVersion 30 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.app.keijiariyama" minSdkVersion 16 targetSdkVersion 30 versionCode 1 versionName "1.0" multiDexEndbled true testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } dataBinding{ enabled true } } dependencies { def fragment_version = "1.2.5" implementation "androidx.fragment:fragment:$fragment_version" implementation "androidx.fragment:fragment-ktx:$fragment_version" debugImplementation "androidx.fragment:fragment-testing:$fragment_version" implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.2.0' implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.2.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' implementation 'androidx.fragment:fragment-ktx:1.2.3' implementation 'com.squareup.retrofit2:retrofit:2.7.1' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9' implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0" implementation "com.squareup.moshi:moshi-kotlin:1.9.2" implementation 'com.squareup.retrofit2:converter-moshi:2.7.0' implementation 'androidx.recyclerview:recyclerview:1.1.0' implementation 'com.github.bumptech.glide:glide:4.10.0' kapt 'com.github.bumptech.glide:compiler:4.10.0' def multidex_version = "2.0.1" implementation "androidx.multidex:multidex:$multidex_version" implementation 'com.android.support:multidex:1.0.3' implementation "androidx.multidex:multidex:2.0.1" }
Build時のエラー内容
Build file 'C:\Users\today\AndroidStudioProjects\KeijiAriyama\app\build.gradle' line: 8
A problem occurred evaluating project ':app'.
No signature of method: build_3ljj5071i5qgmzc4sjyww8q6x.android() is applicable for argument types: (build_3ljj5071i5qgmzc4sjyww8q6x$_run_closure1) values: [build_3ljj5071i5qgmzc4sjyww8q6x$_run_closure1@7a86f952]
エラー内容がわかる方がいらっしゃったら返答よろしくお願い致します。
あなたの回答
tips
プレビュー