问题描述

将高德 SDK 的 jar 包放到 android library project libs 目录下,发布为 aar 包后,发现高德 jar 包中的 assets 目录下的内容不见了

原因见:打包APK导致Assets文件夹丢失地图白屏怎么办?

如何解决

将高德 SDK 的 jar 上传到 maven 仓库,android library project 使用 maven 远程引用

# 上传 jar 包到 maven
mvn deploy:deploy-file -DgroupId="${group_id}" -DartifactId="${artifact_id}" -Dversion="${version}" -Dfile="${file_path}" -Dpackaging=jar -Durl="${repo_url}" -DrepositoryId="${repository_id}"

相关文章:

  • 2021-09-14
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-07-15
  • 2021-11-30
  • 2021-10-14
猜你喜欢
  • 2021-09-28
  • 2022-12-23
  • 2022-03-10
  • 2022-12-23
  • 2021-09-10
  • 2021-06-17
相关资源
相似解决方案