More than one file was found with OS independent path 'com/mysql/jdbc/configs/maxPerformance.properties'
当我尝试在 Android Studio 中构建我的 gradle 时,我尝试在我的项目中使用 MySQL 作为数据库
最佳答案
您链接了 mysql-connector-java 依赖项两次。我建议通过以下方式链接依赖项:
implementation 'mysql:mysql-connector-java:5.1.45'
此依赖项可在 jcenter ( https://bintray.com/bintray/jcenter/mysql:mysql-connector-java ) 中找到。
但是我不建议直接连接到 SQL 数据库。我更喜欢编写一个 REST 服务。解释了不应使用直接连接数据库的原因 here .
关于android - 发现多个文件具有独立于操作系统的路径 'com/mysql/jdbc/configs/maxPerformance.properties',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54948976/