Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
####################################################
Please provide all of the following information, otherwise we may not be able to route your bug report.
####################################################
1. Describe the bug or issue that you're seeing.
I add the following to the build.gradle.kts(Module:app)
implementation(libs.room.compiler)
implementation(libs.androidx.room.common)
implementation(libs.androidx.room.runtime)
here is my current file
plugins {
alias(libs.plugins.android.application)
}
android {
namespace = "com.example.roomdb"
compileSdk = 34
defaultConfig {
applicationId = "com.example.roomdb"
minSdk = 24
targetSdk = 34
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
dependencies {
implementation(libs.appcompat)
implementation(libs.material)
implementation(libs.activity)
implementation(libs.constraintlayout)
implementation(libs.room.compiler)
implementation(libs.androidx.room.common)
implementation(libs.androidx.room.runtime)
testImplementation(libs.junit)
androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
}
I have all of them at the newest version which is 2.70 alpha04
2. Attach log files from Android Studio
2A. In the IDE, select the Help..Collect Logs and Diagnostic Data menu option.
2B. Create a diagnostic report and save it to your local computer.
2C. Attach the report to this bug using the Add attachments button.
3. If you know what they are, write the steps to reproduce:
3A. Adding
implementation(libs.room.compiler)
implementation(libs.androidx.room.common)
implementation(libs.androidx.room.runtime)
to the build.gradle.kts(Module:app)
3B. I write my room db code and I build
3C. When I run I get duplicate errors.
I want to use room db but nothing I try works.
In addition to logs, please attach a screenshot or recording that illustrates the problem.
For more information on how to get your bug routed quickly, see
Build: AI-241.15989.150.2411.11948838, 202406101454
AS: Koala | 2024.1.1
AI-241.15989.150.2411.11948838, JRE 17.0.10+0--11609105x64 JetBrains s.r.o., OS Windows 11(amd64) v10.0 , screens 1366.0x768.0
Android Gradle Plugin: 8.4.2
Gradle: 8.6
Gradle JDK: JetBrains Runtime 17.0.10
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
```