我正在尝试添加以下齐射和aws依赖项,从而使错误降低
错误:无法解决其依赖性
':app @ debug / compileClasspath':无法解析com.android.volley:volley:1.1.1。
Android Studio版本3.3.2,但可以在3版以上的版本中使用
implementation 'com.android.volley:volley:1.1.1,
compile 'com.amazonaws:aws-android-sdk-core:2.6.14'
compile 'com.amazonaws:aws-android-sdk-cognito:2.6.14'
compile 'com.amazonaws:aws-android-sdk-s3:2.6.+',
compile 'com.amazonaws:aws-android-sdk-ddb:2.6.14'
答案 0 :(得分:0)
将代码更改为
implementation "com.android.volley:volley:1.1.1"
implementation "com.amazonaws:aws-android-sdk-core:2.6.14"
implementation "com.amazonaws:aws-android-sdk-cognito:2.6.14"
implementation "com.amazonaws:aws-android-sdk-s3:2.6.+"
implementation "com.amazonaws:aws-android-sdk-ddb:2.6.14"
答案 1 :(得分:-1)
请用implementation 'com.android.volley:volley:1.1.1,
替换implementation 'com.android.volley:volley:1.1.1'
这意味着使用'代替,并使用“ implementation
”而不是“ compile
”。希望能奏效。谢谢