Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find com.amitshekhar.android:debug-db:1.0.5. in Android studio Flamingo #227

Closed
yashshree29 opened this issue Oct 10, 2023 · 2 comments

Comments

@yashshree29
Copy link

Cannot build gradle successfully after adding this dependency in Android studio | 2022.2.1 Patch 1
Does it support new android studio versions?

@nilesh-gore
Copy link

nilesh-gore commented Mar 8, 2024

Full Build Output For New Project

dependencies {
    debugImplementation("com.github.amitshekhariitbhu.Android-Debug-Database:debug-db:v1.0.6")
}
* What went wrong:
Execution failed for task ':app:desugarDebugFileDependencies'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.github.amitshekhariitbhu.Android-Debug-Database:debug-db:v1.0.6.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/github/amitshekhariitbhu/Android-Debug-Database/debug-db/v1.0.6/debug-db-v1.0.6.pom
       - https://repo.maven.apache.org/maven2/com/github/amitshekhariitbhu/Android-Debug-Database/debug-db/v1.0.6/debug-db-v1.0.6.pom
     Required by:
         project :app

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

@amitshekhariitbhu
Copy link
Owner

Solution:

Add this in your settings.gradle:

maven { url 'https://jitpack.io' }

If you are using settings.gradle.kts, add the following:

maven { setUrl("https://jitpack.io") }

Add this in your build.gradle

debugImplementation 'com.github.amitshekhariitbhu.Android-Debug-Database:debug-db:1.0.7'

If you are using build.gradle.kts, add the following:

debugImplementation("com.github.amitshekhariitbhu.Android-Debug-Database:debug-db:1.0.7")

Using the Android Debug Database with encrypted database

Add this in your build.gradle

debugImplementation 'com.github.amitshekhariitbhu.Android-Debug-Database:debug-db-encrypt:1.0.7'

If you are using build.gradle.kts, add the following:

debugImplementation("com.github.amitshekhariitbhu.Android-Debug-Database:debug-db-encrypt:1.0.7")

And to provide the password for the DB, you should add this in the Gradle:
DB_PASSWORD_{VARIABLE}, if for example, PERSON is the database name: DB_PASSWORD_PERSON

debug {
    resValue("string", "DB_PASSWORD_PERSON", "password")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants