我有一个项目,我想在我的计算机上配置.
在其他计算机上它可以工作,但每当我使用0.5.2时,使用旧版Android Studio 0.4.0
问题是我启动应用程序后显示错误
构建脚本错误,找不到支持的Gradle DSL方法:'coreLibrary()'!可能的原因可能是:
- 您正在使用Gradle版本,其中方法不存在 - 您没有应用提供方法的Gradle插件 - 或者构建脚本中存在错误
但为了使它工作,我必须使用这个标志!我已经尝试在设置> Android编译器>"添加--core-library"标志中启用它,但它没用...
在gradle我有下一部分代码:
dexOptions {
coreLibrary true;
}
Run Code Online (Sandbox Code Playgroud)
此错误仅在激活此行之后显示...没有它们它不起作用...
我应该如何修复这个?也许这是因为不同的版本..如果是的话那么我应该如何写它才能使它工作?
更改为coreLibrary = true之后它运行-core-library标志使用后编译Gradle精细BUt stille需要....但我已经在设置中将其设置为true ...
它显示不是几乎相同的错误:
Error:Execution failed for task ':BusKg:preDexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
D:\Programms\Programms\adt-bundle-windows-x86_64-20131030\sdk\build-tools\android-4.4\dx.bat --dex --output D:\Android2\BUS.kg\marshrutka\BusKg\build\pre-dexed\debug\annotations-api-6.0.26-27e56569b50edbdd453f9bc0e568cde1fbfa621b.jar C:\Users\Viacheslav\.gradle\caches\modules-2\files-2.1\org.apache.tomcat\annotations-api\6.0.26\50aeafa144ed17913ed44d18ac61afd505a9e3e\annotations-api-6.0.26.jar
Error Code:
1
Output:
trouble processing "javax/xml/ws/WebServiceRef.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 …
Run Code Online (Sandbox Code Playgroud) 我有一个项目,我想在我的计算机上配置.
在其他计算机上它可以工作,但每当我使用0.6.1时,使用旧版Android Studio 0.4.0
但为了使它工作,我必须使用这个标志!我知道在以前的版本中可以在设置> Android编译器>"添加 - 核心库"标志中启用它,但是在0.6.1中我没有找到任何东西......
在gradle我有下一部分代码:
dexOptions {
coreLibrary = true;
}
Run Code Online (Sandbox Code Playgroud)
我应该如何修复这个?也许这是因为不同的版本..如果是的话那么我应该如何写它才能使它工作?
错误:
Error:Execution failed for task ':BusKg:preDexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
D:\Programms\Programms\adt-bundle-windows-x86_64-20131030\sdk\build-tools\android-4.4\dx.bat --dex --output D:\Android2\BUS.kg\marshrutka\BusKg\build\pre-dexed\debug\annotations-api-6.0.26-27e56569b50edbdd453f9bc0e568cde1fbfa621b.jar C:\Users\Viacheslav\.gradle\caches\modules-2\files-2.1\org.apache.tomcat\annotations-api\6.0.26\50aeafa144ed17913ed44d18ac61afd505a9e3e\annotations-api-6.0.26.jar
Error Code:
1
Output:
trouble processing "javax/xml/ws/WebServiceRef.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 application's project, when using an IDE (such as
Eclipse). If …
Run Code Online (Sandbox Code Playgroud)