vmadalin / easypermissions-ktx

🔓 Kotlin version of the popular google/easypermissions wrapper library to simplify basic system permissions logic on Android M or higher.
https://firebaseopensource.com/projects/googlesamples/easypermissions/
Apache License 2.0
383 stars 38 forks source link

base library error after implementation #7

Closed behnawwm closed 3 years ago

behnawwm commented 3 years ago

After implementing the library, these base Androidx errors appear! What's the problem?

Execution failed for task ':app:dataBindingMergeDependencyArtifactsDebug'.
> Could not resolve all files for configuration ':app:debugCompileClasspath'.
   > Could not find fragment-1.2.5.aar (androidx.fragment:fragment:1.2.5).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.2.5/fragment-1.2.5.aar
   > Could not find fragment-1.2.5.aar (androidx.fragment:fragment:1.2.5).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.2.5/fragment-1.2.5.aar
   > Could not find fragment-1.2.5.aar (androidx.fragment:fragment:1.2.5).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.2.5/fragment-1.2.5.aar
vmadalin commented 3 years ago

Hi @behnawwm, First of all thank you for the issue. The problem that you face isn't related with the library and is more with your project. Seems for a reason gradle cannot find properly the fragment dependency. I recommend you check that, probably could be because you don't have present google() on repositories. You have more details [here].(https://stackoverflow.com/questions/60221249/could-not-find-fragment-jar-androidx-fragmentfragment1-0-0)

In addition, I recommend you to check the following step by step implementation of the library on the following tutorial: https://www.youtube.com/watch?v=51fX94dU7Og

behnawwm commented 3 years ago

Thanks for the quick response!

My problem was all about proxies! I set a proper proxy and it's working well again. https://github.com/freedomofdevelopers/fod