警告:依赖org.apache.httpcomponents:HttpClient的:4.2.1使用jfrog和Android,Maven的插件时,忽略 [英] Warning:Dependency org.apache.httpcomponents:httpclient:4.2.1 is ignored when using jfrog and android-maven-plugin

查看:1798
本文介绍了警告:依赖org.apache.httpcomponents:HttpClient的:4.2.1使用jfrog和Android,Maven的插件时,忽略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建使用JFrog插件外部的Andr​​oid库得到了不少的问题一。本质上,它一直试图摆脱依赖阿帕奇没有我问他们。这似乎与那我的gradle与应用插件。如果我尝试在我的应用程序来使用这个库,并尝试使用本地Maven回购来运行它,它持续一个很长的时间,然后我得到这些警告:

I'm getting quite a lot a problems by creating an external android library using the JFrog plugin. Essentially it keeps trying to get dependencies from apache without me asking for them. It seems related to the plugins that I'm applying with gradle. If I try to use this library in my app and try to run it using the local maven repo, it lasts a really a long time and then I get these warnings:

信息:摇篮任务[干净,:generateDebugSources,>:generateDebugAndroidTestSources,:compileDebugSources,>:compileDebugAndroidTestSources]

Information:Gradle tasks [clean, :generateDebugSources, >:generateDebugAndroidTestSources, :compileDebugSources, >:compileDebugAndroidTestSources]

警告:依赖org.apache.httpcomponents:HttpClient的:4.2.1被忽略>调试,因为它可能与>提供的内部版本有冲突的Andr​​oid

Warning:Dependency org.apache.httpcomponents:httpclient:4.2.1 is ignored >for debug as it may be conflicting with the internal version provided by >Android.

和在最后我得到的错误:

and at the end I get errors:

com.android.dx.cf.cst.ConstantPoolParser.parse0(ConstantPoolParser.java:262)
        at com.android.dx.cf.cst.ConstantPoolParser.parse0(ConstantPoolParser.java:294)
        at com.android.dx.cf.cst.ConstantPoolParser.parse(ConstantPoolParser.java:150)
        at com.android.dx.cf.cst.ConstantPoolParser.parseIfNecessary(ConstantPoolParser.java:124)
        at com.android.dx.cf.cst.ConstantPoolParser.getPool(ConstantPoolParser.java:115)
        at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:482)
        at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
        at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
        at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
        at com.android.dx.command.dexer.Main.parseClass(Main.java:764)
        at com.android.dx.command.dexer.Main.access$1500(Main.java:85)
        at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684)
        at com.android.dx.command.dexer.Main.processClass(Main.java:749)
        ... 12 more
    Error:java.lang.IllegalArgumentException: bad utf-8 byte a0 at offset 00000004
        at com.android.dx.rop.cst.CstString.throwBadUtf8(CstString.java:171)
        at com.android.dx.rop.cst.CstString.utf8BytesToString(CstString.java:143)
        at com.android.dx.rop.cst.CstString.<init>(CstString.java:200)
        at com.android.dx.cf.cst.ConstantPoolParser.parseUtf8(ConstantPoolParser.java:371)
        ... 25 more
    1 error; aborting
    Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
    > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

<!-- end snippet -->

和我已经通过计算器和其他网站搜索,但我无法找到答案。该解决方案presented在<一个href=\"http://stackoverflow.com/questions/28021936/incom$p$phensible-error-starting-the-project-gradle/28025725#28025725\">Incom$p$phensible错误启动不适合我的工作项目(gradle这个)。我的文件的gradle你可以在这里看到:<一href=\"https://raw.githubusercontent.com/jesperancinha/lib-chartizate-sz/master/chartizate-text-writer-android/build.gradle\" rel=\"nofollow\">https://raw.githubusercontent.com/jesperancinha/lib-chartizate-sz/master/chartizate-text-writer-android/build.gradle.我已经看到JFrog和Android Maven的插件的gradle似乎是罪魁祸首,因为它是只有当我加入他们,我开始有问题。

And I have already searched through stackoverflow and other sites but I can't find an answer. The solution presented in Incomprehensible error starting the project (gradle) doesn't work for me. My gradle file you can see here: https://raw.githubusercontent.com/jesperancinha/lib-chartizate-sz/master/chartizate-text-writer-android/build.gradle. I have already seen that JFrog and android-maven gradle plugins seem to be the culprits because it's only when I add them that I start to have problems.

推荐答案

检查,我只是想出了什么propblem了,现在我想知道,如果这个问题的<一个href=\"http://stackoverflow.com/questions/28021936/incom$p$phensible-error-starting-the-project-gradle?lq=1\">Incom$p$phensible错误启动是同一项目(gradle这个)。基本上我的类路径中有Maven插件,该插件jfrog以及在它的插件的gradle,基本上是做了很多的递归调用并在实际构建这些插件组成部分。它现在是固定的,我关闭了这个问题。

Check, I just figured out what the propblem was, and now I'm wondering if the problem for Incomprehensible error starting the project (gradle) was the same. Essentially my classpath had the maven plugin, the jfrog plugin and also the gradle plugin in it, which essentially was making a lot of recursive calls and making these plugins part of the actual build. It is now fixed and I'm closing this issue.

这篇关于警告:依赖org.apache.httpcomponents:HttpClient的:4.2.1使用jfrog和Android,Maven的插件时,忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆