Closed thiagomacauba88 closed 7 months ago
Hi @thiagomacauba88, given the error message you are describing above:
error: onCreate(SupportSQLiteDatabase) in <anonymous ironark.com.charge.data.database.room.AppDatabase_Impl$1> cannot override onCreate(SupportSQLiteDatabase) in Delegate protected void onCreate(SupportSQLiteDatabase _db) { ^ attempting to assign weaker access privileges; was public
This looks like an application issue in how you are using Room, and does not look related to your usage of the Stripe Terminal SDK.
@thiagomacauba88 we are going to close this issue out, if you are still seeing issues, please contact support.
Summary
Getting some issues when I'm trying to implement Tap to Pay. I followed the docs and removed: implementation "com.stripe:stripeterminal:2.16.0" added: implementation "com.stripe:stripeterminal-localmobile:2.21.1" implementation "com.stripe:stripeterminal-core:2.21.1"
I get the lowest version because I would like to change the minSDKVersion to 26, my current is 21
error: incompatible types: cannot be converted to int
@androidx.room.Insert(onConflict = null)
This error above I managed to fix replacing: import androidx.room.OnConflictStrategy.REPLACE to import androidx.room.OnConflictStrategy.Companion.REPLACE
After this I got:
error: onCreate(SupportSQLiteDatabase) in <anonymous ironark.com.charge.data.database.room.AppDatabase_Impl$1> cannot override onCreate(SupportSQLiteDatabase) in Delegate protected void onCreate(SupportSQLiteDatabase _db) { ^ attempting to assign weaker access privileges; was public
Android version
ext { kotlin_version = '1.7.20' nav_version = '2.4.1' google_services_version = "4.3.13" hilt_version = "2.44" }
SDK version
apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.firebase.crashlytics' apply plugin: "androidx.navigation.safeargs" apply plugin: 'kotlin-kapt' apply plugin: 'dagger.hilt.android.plugin' apply plugin: "kotlinx-serialization" apply plugin: 'project-report'
android { packagingOptions { resources { excludes += ['META-INF/koin-core.kotlin_module'] } } compileSdkVersion 33 defaultConfig { applicationId "ironark.com.charge" minSdkVersion 21 targetSdkVersion 33 multiDexEnabled true } buildTypes { create("customDebugType") { debuggable = true } debug { manifestPlaceholders = [enableCrashReporting: "false"] } release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' manifestPlaceholders = [enableCrashReporting: "true"] signingConfig signingConfigs.release } } buildToolsVersion = '33.0.0' compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } kotlinOptions { jvmTarget = JavaVersion.VERSION_11 }
}
dependencies {
// implementation "com.stripe:stripeterminal:2.16.0" implementation 'com.helpscout:beacon:3.0.2'
}