生成apk的时候报的错误:
[2019-07-10 18:07:03 - Dex Loader]
Failed to load D:\adt-bundle-windows-x86_64-20140702\sdk\build-tools\28.0.3\lib\dx.jar
解决办法:
降低buildtool的版本,比如:
sdk.buildtools=25.0.3
project.properties :
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-22
sdk.buildtools=25.0.3
android.library.reference.1=../appcompat_v7
参考:
博客提到生成APK时出现报错,解决办法是降低buildtool的版本,还给出了project.properties相关参考链接https://www.jianshu.com/p/cb1de7228c95 。
2809

被折叠的 条评论
为什么被折叠?



