android - 无法解决:com.github.KwabenBerko:News-API-Java:1.0.0
问题描述
代码
安卓 { compileSdk 31
defaultConfig {
applicationId "com.example.newsapi"
minSdk 21
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
依赖{
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.github.KwabenBerko:News-API-Java:1.0.0'
}
问题 我正在使用我在项目的 build.gradle(module level) 中实现的 NewsApi。但它正在抛出 ---> 无法解决:com.github.KwabenBerko:News-API-Java:1.0.0
解决方案
推荐阅读
- javascript - 反应:TypeError:无法读取未定义的属性“拆分”
- python - 你好,我在 kivymd 上练习,当我运行我的代码时,它显示“未命名的窗口”有人可以帮助我吗?
- r - 获取每行最频繁的值并考虑关系
- powershell - Dockerfile - 如何在 Dockerfile 中声明一个可以在多个 RUN 指令中使用的变量?
- python - 带有 mongodb 的 k8s 中的 python 应用程序引发 InvalidURI('Bad database name "%s"' % dbas
- mysql - case语句结束后是否可以调用sql函数
- sqlite - CS50 | SQL - 不知道为什么只打印“Kevin bacon”
- python-3.x - 有没有办法为所有模板使用一个表单?
- php - 如何在 AJAX 调用中使用 + 字符传递数据?
- git - Git 补丁与 GitHub 拉取请求