生成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
参考: