前提・実現したいこと
kotlinでアプリを作っています。
anko commonsのセットアップを行う際にうまくいきませんでした。
このセットアップ完了時に行いたい、ankoのstartActivityを使いたいのですが、セットアップがうまくいかず、コードを書く際に、コード補完の選択肢に表示がされません。ボールドテキスト
発生している問題・エラーメッセージ
Failed to resolve: org.jetbrains.anko:anko-commom:0.10.5
該当のソースコード
kotlin
buildscript { ext.kotlin_version = '1.2.50' ext.anko_version = '0.10.5' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.1.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } コード
apply
1 2apply plugin: 'kotlin-android' 3 4apply plugin: 'kotlin-android-extensions' 5 6android { 7 compileSdkVersion 27 8 defaultConfig { 9 vectorDrawables.useSupportLibrary = true 10 applicationId "com.example.tarou.mysize" 11 minSdkVersion 16 12 targetSdkVersion 27 13 versionCode 1 14 versionName "1.0" 15 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 16 } 17 buildTypes { 18 release { 19 minifyEnabled false 20 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 21 } 22 } 23} 24 25dependencies { 26 implementation "org.jetbrains.anko:anko-commom:$anko_version" 27 implementation fileTree(dir: 'libs', include: ['*.jar']) 28 implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" 29 implementation 'com.android.support:appcompat-v7:27.1.1' 30 implementation 'com.android.support.constraint:constraint-layout:1.1.2' 31 testImplementation 'junit:junit:4.12' 32 androidTestImplementation 'com.android.support.test:runner:1.0.2' 33 androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 34} 35 36コード
試したこと
android studioのアップデート
補足情報(FW/ツールのバージョンなど)
現在プログラミングを始めたばかりで、参考書は「はじめてのandroidプログラミン第3版」というものを使っており、参考書では、ankoのバージョンが'0.10.4'で、今回は最新の'0.10.5'で行っています。
質問内容がおかしな点もあるとは思いますがよろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/07/18 05:06