前提・実現したいこと
AndroidStudioを触り始めて1週間の初心者です。
以下のサイトのコード使用してSQLiteを自分のエミュレータ上で動かそうとしています
SQLiteによるデータベース操作(SELECT/INSERT/UPDATE/DELETE/トランザクション) [Android Studio]
発生している問題・エラーメッセージ
Unused import statement というメッセージがでてしまいます
該当のソースコード
Java
1import android.support.v7.app.AppCompatActivity; 2上記のサイトの6行目のコードです。
試したこと
キャッシュの削除くらいしかまともにできませんでした...
###補足情報(FW/ツールのバージョンなど)
AndroidStudio3.4.1です
###追記
####app/build.gradleの中身
apply plugin: 'com.android.application' android { compileSdkVersion 29 buildToolsVersion "29.0.0" defaultConfig { applicationId "example.com.datat" minSdkVersion 27 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' }
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー