Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> org.apache.velocity.exception.VelocityException: Error initializing log: Failed to initialize an instance of org.apache.velocity.runtime.log.CommonsLogLogChute with the current runtime configuration.将gradle上的配置从目标22更改为目标23时出现错误。不知道那是什么,有什么想法吗?
相关build.gradle部分
{
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.my.package.app"
minSdkVersion 14
targetSdkVersion 23
versionCode 4
versionName "1.0"
multiDexEnabled true
}预先感谢任何愿意帮忙的人
编辑:依赖关系
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
provided 'org.roboguice:roboblender:3.+'
compile 'org.roboguice:roboguice:3.+'
}更新:问题已连接到机器人库。
发布于 2016-01-08 13:33:58
将下面提到的值添加到应用程序级别的级别中。
android {
useLibrary 'org.apache.http.legacy'
.......
}https://stackoverflow.com/questions/34675275
复制相似问题