去官网下载jar包 

http://repo1.maven.org/maven2/com/google/zxing

 

把jar包导入Android中的libs中

在build.gradle中添加

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
 
    implementation 'com.android.support:appcompat-v7:27.1.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    //************添加区域*********************//
    implementation files('libs/core-3.3.0.jar')
    //************添加区域*********************//
}


 
————————————————
转载于:https://blog.csdn.net/zb774095236/article/details/91378309

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐