以下是我使用的依赖项
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'com.google.firebase:firebase-ml-vision:24.1.3'
implementation 'com.google.firebase:firebase-core:20.0.2'
implementation 'com.google.firebase:firebase-ml-vision-image-label-model:20.0.2'
implementation 'com.android.volley:volley:1.2.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.squareup.picasso:picasso:2.71828'
错误:-未能解析:com.google.firebase:firebase核心:20.0.2并且未能解析:com.ibm.google.firebase ml视觉:24.1.3
你试试看。
implementation 'com.google.firebase:firebase-core:17.5.0'
implementation 'com.google.firebase:firebase-ml-vision:24.1.0'