解决办法:不用去编译该库,使用provided
dependencies {
provided files('lib/layoutlib.jar')
}
问题报错如下:
Execution failed for task ':preDexDebug'.
com.android.ide.common.internal.LoggedErrorException: Failed to run command:E:\Android_ADT\adt-bundle-windows-x86_64\sdk\build-tools\22.0.1\dx.bat --dex --output D:\Myproject\build\intermediates\pre-dexed\debug\layoutlib-ae9cf8329731796be8e310f0f62b2c55a956159a.jar D:\Myproject\doc\layoutlib.jar
Error Code:
1
Output:
trouble processing "java/lang/AutoCloseable.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.
This is often due to inadvertently including a core library file
in your applicatio