アプリ開発を行っている初心者です。
2019年の夏から64ビット対応しないとダメ!とgoogleに注意されたので、ぐぐってみると
targetSdkVersion 28
に変更・・・と記載があったので、build.gradle(app)の対象箇所を変更してみました。
すると
implementation 'com.android.support:appcompat-v7:26.1.0'
でエラーがでましたので、「28」にあわせれば良いのかと思い、
implementation 'com.android.support:appcompat-v7:28.0.0'
へ変更しました。
そうすると、
implementation 'com.android.support:appcompat-v7:28.0.0'
に赤線が入ります。
クリーンプロジェクトし、MakeProjectしてもエラーメッセージは表示されませんし、実機で稼働します。
そこで質問です。
1)赤線を消すにはどうすればよいでしょうか?
2)そもそも、64ビット対応は「targetSdkVersion 28」するだけで良いのでしょうか?
(開発言語はJavaです)
何卒、ご教示頂けますと非常に助かります。
apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' apply plugin: 'io.fabric' apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.XXX.xxxx" minSdkVersion 18 targetSdkVersion 28 multiDexEnabled true versionCode 1 versionName "1" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { minifyEnabled false debuggable true } } sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/gfx', 'src/main/assets/mfx'] } } dexOptions { javaMaxHeapSize "Xg" } } dependencies { implementation 'com.google.firebase:firebase-core:16.0.5' implementation 'com.android.support:multidex:1.0.3' implementation fileTree(include: ['*.jar'], dir: 'libs') //implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' implementation 'com.google.android.gms:play-services-ads-identifier:+' implementation 'com.google.android.gms:play-services-ads:17.1.1' implementation 'com.maio:android-sdk:1.1.6' implementation 'com.google.firebase:firebase-crash:16.2.1' // Add dependency implementation 'com.crashlytics.sdk.android:crashlytics:2.9.6' implementation 'com.google.android.gms:play-services-analytics:16.0.4' }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/05/21 13:27
2019/05/23 13:38
2019/05/24 03:06