質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Kotlin

Kotlinは、ジェットブレインズ社のアンドリー・ブレスラフ、ドミトリー・ジェメロフが開発した、 静的型付けのオブジェクト指向プログラミング言語です。

Q&A

解決済

1回答

809閲覧

android studio anko commons セットアップについて

tarotaro53

総合スコア9

Kotlin

Kotlinは、ジェットブレインズ社のアンドリー・ブレスラフ、ドミトリー・ジェメロフが開発した、 静的型付けのオブジェクト指向プログラミング言語です。

0グッド

0クリップ

投稿2018/07/17 18:24

前提・実現したいこと

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'で行っています。
質問内容がおかしな点もあるとは思いますがよろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

anko-commons のスペルミスではないですか?

投稿2018/07/18 00:01

kakajika

総合スコア3131

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

tarotaro53

2018/07/18 05:06

スペルミスでした! コード打つ時は気をつけます! ありがとうございました!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問