我试图使用Spinkit React Native库及其在ios上的工作,但是当我在android上导出它时,我得到了这个日志
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-spinkit'.
> Could not find support-compat.aar (com.android.support:support-compat:26.1.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-compat/26.1.0/support-compat-26.1.0.aar
有什么想法吗?
答案 0 :(得分:2)
只需转到URL,您将看不到任何内容。
确保gradle文件中有这样的部分
repositories {
google()
jcenter()
}
答案 1 :(得分:1)
删除所有gradle缓存文件(〜/ .gradle /),然后重试!
答案 2 :(得分:0)
请通过以下方式更新构建项目的顺序
guard let data = data else { return }
do {
let preis = try JSONDecoder().decode(Wert.self, from: data)
print(preis);
}
catch {
print("JSON error: \(error.localizedDescription)")
}
}.resume()
{
"first_name": "Ford",
"last_name": "Prefect",
"age": 5000
},
{
"first_name": "Zaphod",
"last_name": "Beeblebrox",
"age": 999
},
{
"first_name": "Arthur",
"last_name": "Dent",
"age": 42
},
{
"first_name": "Trillian",
"last_name": "Astra",
"age": 1234
}
]
现有代码:
$ cordova build android
代码更新如下:
Open {project-root-folder}/platforms/android/build.gradle