hi, I used this library in several projects, but for my recent project after I add this library, I can sync my Gradle perfectly, but after I try to run my app, I get this error:
Could not find fragment.jar (androidx.fragment:fragment:1.1.0). Searched in the following locations: https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.1.0/fragment-1.1.0.jar
I tried to add this to my project to fix this problem :
implementation "androidx.fragment:fragment:$fragment_version"
but I get the error with this warning :
Warning:<i><b>project ':app': Unable to build Kotlin project configuration</b> Details: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugImplementationDependenciesMetadata'. Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find fragment.jar (androidx.fragment:fragment:1.1.0). Searched in the following locations: https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.1.0/fragment-1.1.0.jar</i>
why this is happening?
I use these versions :
compileSdkVersion 29
buildToolsVersion "29.0.2"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.1.0'
implementation 'com.google.android.material:material:1.2.0-alpha01'
with kotlin version :
ext.kotlin_version = '1.3.50'
hi, I used this library in several projects, but for my recent project after I add this library, I can sync my Gradle perfectly, but after I try to run my app, I get this error:
Could not find fragment.jar (androidx.fragment:fragment:1.1.0). Searched in the following locations: https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.1.0/fragment-1.1.0.jar
I tried to add this to my project to fix this problem :
implementation "androidx.fragment:fragment:$fragment_version"
but I get the error with this warning :Warning:<i><b>project ':app': Unable to build Kotlin project configuration</b> Details: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugImplementationDependenciesMetadata'. Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find fragment.jar (androidx.fragment:fragment:1.1.0). Searched in the following locations: https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.1.0/fragment-1.1.0.jar</i>
why this is happening? I use these versions : compileSdkVersion 29 buildToolsVersion "29.0.2" implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.core:core-ktx:1.1.0' implementation 'com.google.android.material:material:1.2.0-alpha01'
with kotlin version : ext.kotlin_version = '1.3.50'