amitshekhariitbhu / Android-Debug-Database

A library for debugging android databases and shared preferences - Make Debugging Great Again
https://outcomeschool.com
Apache License 2.0
8.41k stars 871 forks source link

Could not resolve com.amitshekhar.android:debug-db:1.0.6. #236

Closed aneebali closed 2 months ago

aneebali commented 2 months ago

Could not resolve com.amitshekhar.android:debug-db:1.0.6. Required by: project :app Could not resolve com.amitshekhar.android:debug-db:1.0.6. Could not get resource 'https://jitpack.io/com/amitshekhar/android/debug-db/1.0.6/debug-db-1.0.6.pom'. Could not HEAD 'https://jitpack.io/com/amitshekhar/android/debug-db/1.0.6/debug-db-1.0.6.pom'. Received status code 401 from server: Unauthorized

amitshekhariitbhu commented 2 months ago

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: DBPASSWORD{VARIABLE}, if for example, PERSON is the database name: DB_PASSWORD_PERSON

debug {
    resValue("string", "DB_PASSWORD_PERSON", "password")
}
aneebali commented 2 months ago

Thanks