skip to Main Content

Android Studio – Encountering 'Gradle Duplicate class found' error after adding dependency

I'm looking to implement in-app updates and am following the guidance provided by Google https://developer.android.com/guide/playcore/in-app-updates/kotlin-java#kts As such i'm trying to add the following dependencies implementation("com.google.android.play:app-update:2.0.0") implementation("com.google.android.play:app-update-ktx:2.0.0") However when trying to build the project I am confronted with a Duplicate class…

VIEW QUESTION

Android Studio – "error: package R does not exist" in Navigation after adding Assets folder: Android Studio

Since adding an Assets folder to my project I now get: error: package R does not exist "return new ActionOnlyNavDirections(R.id.action_newAlarmFragment_to_homeFragment);" which is from this auto generated code: import androidx.annotation.NonNull; import androidx.navigation.ActionOnlyNavDirections; import androidx.navigation.NavDirections; public class SetNewAlarmFragmentDirections { private SetNewAlarmFragmentDirections() {…

VIEW QUESTION
Back To Top
Search