Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/182.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/algorithm/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 错误:未能解析:com.github.hatamiarash7:RTL Toast:1.3_Android_Android Studio_Android Library_Android Toast - Fatal编程技术网

Android 错误:未能解析:com.github.hatamiarash7:RTL Toast:1.3

Android 错误:未能解析:com.github.hatamiarash7:RTL Toast:1.3,android,android-studio,android-library,android-toast,Android,Android Studio,Android Library,Android Toast,此错误仅发生在android studio 3.5中。我不知道为什么,因为我在我的其他项目中使用了相同的库,但在升级到最新的android studio 3.5之后,我遇到了这个问题。我已经检查并尝试了一些答案,但我无法解决它 错误: implementation 'com.github.hatamiarash7:RTL-Toast:1.3' dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) impl

此错误仅发生在android studio 3.5中。我不知道为什么,因为我在我的其他项目中使用了相同的库,但在升级到最新的android studio 3.5之后,我遇到了这个问题。我已经检查并尝试了一些答案,但我无法解决它

错误:

implementation 'com.github.hatamiarash7:RTL-Toast:1.3'
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.android.support:appcompat-v7:28.+'
implementation 'com.android.support:design:28.+'
implementation 'com.android.support:cardview-v7:28.+'
implementation 'com.android.support:recyclerview-v7:28.+'
// circle image view
implementation 'de.hdodenhof:circleimageview:2.1.0'

implementation 'com.github.hatamiarash7:RTL-Toast:1.3'

implementation 'androidx.appcompat:appcompat:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
错误:未能解析:com.github.hatamiarash7:RTL Toast:1.3

在“项目结构”对话框中显示

受影响模块:应用程序

库:

implementation 'com.github.hatamiarash7:RTL-Toast:1.3'
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.android.support:appcompat-v7:28.+'
implementation 'com.android.support:design:28.+'
implementation 'com.android.support:cardview-v7:28.+'
implementation 'com.android.support:recyclerview-v7:28.+'
// circle image view
implementation 'de.hdodenhof:circleimageview:2.1.0'

implementation 'com.github.hatamiarash7:RTL-Toast:1.3'

implementation 'androidx.appcompat:appcompat:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
我的应用依赖项部分:

implementation 'com.github.hatamiarash7:RTL-Toast:1.3'
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.android.support:appcompat-v7:28.+'
implementation 'com.android.support:design:28.+'
implementation 'com.android.support:cardview-v7:28.+'
implementation 'com.android.support:recyclerview-v7:28.+'
// circle image view
implementation 'de.hdodenhof:circleimageview:2.1.0'

implementation 'com.github.hatamiarash7:RTL-Toast:1.3'

implementation 'androidx.appcompat:appcompat:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
您必须在根
build.gradle
中定义:

allprojects {
   repositories {
        ...
     maven {
       url 'https://jitpack.io'
     }
   }
}
您将使用此依赖项:

implementation 'com.github.hatamiarash7:RTL-Toast:1.3'

我的错,现在我明白了。谢谢你的帮助。