ncapdevi / FragNav

An Android library for managing multiple stacks of fragments
1.5k stars 210 forks source link

error after adding library to project "could not find fragment.jar" #222

Closed Azinnilchi closed 4 years ago

Azinnilchi commented 4 years ago

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'