Error:Compilation failed; see the compiler error output for details.

我们来看看这个博主:http://blog.csdn.net/runner__1/article/details/53482565

我就是借鉴他找错的经历找到错误的

在命令行中进入项目的根目录,或者可以在Android studio的Terminal中直接操作也可以,然后敲入一个命令:

 gradlew compileDebug --stacktrace  

就可以输出较详细的信息,然后根据命令行给出的提示,还可以在后面加上-info或者-debug的选项得到更详细的信息,于是这个命令可以这样写:

gradlew compileDebug --stacktrace -info  
或者:gradlew compileDebug --stacktrace -debug  

查找后,我又用上面博主提供的方法用了这个命令

gradlew compileDebugSources --stacktrace -info  

最后找到了这个

OK!    找到了这个错误,最后发现是我用了databinding的注解但没继承BaseObservable 所以找到错误很轻松的改掉了~


Compile failed; see the compiler error output for details.

05-27

哪位侠客帮我看看,真的找不出办法了!,在JDK下编译也出这错,JDK版本已一样!rn2009-05-27 22:56:25,250 ERROR [org.apache.jasper.compiler.Compiler] Javac exception rnCompile failed; see the compiler error output for details.rn at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)rn at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)rn at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rnrn2009-05-27 22:56:25,250 ERROR [org.apache.jasper.compiler.Compiler] Env: Compile: javaFileName=/E:/jboss-3.2.5/server/default/work/jboss.web/localhost/HSWeb//org/apache/jsp/contract/register\manage_005fview_jsp.javarn classpath=/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/classes/;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/axis-ant.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/axis.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/commons-discovery-0.2.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/commons-fileupload-1.0.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/commons-logging-1.0.4.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/IdGeneratorService.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/jaxrpc.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/jxl.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/log4j-1.2.8.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/log4j.properties;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/Moc_Common.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/mr.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/msbase.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/mssqlserver.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/msutil.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/ot-common.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/saaj.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/servlet.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/tools.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/wsdl4j-1.5.1.jar;E:\jboss-3.2.5\server\default\work\jboss.web\localhost\HSWeb;/E:/jboss-3.2.5/server/default/lib/snmp-support.jar;/E:/jboss-3.2.5/lib/dom4j.jar;/E:/jboss-3.2.5/server/default/tmp/deploy/tmp53041commons-logging.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/jaxrpc.jar;/E:/jboss-3.2.5/server/default/lib/scheduler-plugin-example.jar;/E:/jboss-3.2.5/server/default/tmp/deploy/tmp53037commons-beanutils.jar;/E:/jboss-3.2.5/server/default/lib/jboss-transaction.jar;/E:/jboss-3.2.5/server/default/lib/jboss-management.jar;/E:/jboss-3.2.5/server/default/tmp/deploy/tmp53045jasper-runtime.jar;/E:/jboss-3.2.5/server/default/tmp/deploy/tmp53049servlet-api.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/axis-ant.jar;/E:/jboss-3.2.5/server/default/lib/autonumber-plugin.jar rn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\ot-common.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\saaj.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\servlet.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\tools.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\wsdl4j-1.5.1.jarrn cp=E:\jboss-3.2.5\server\default\work\jboss.web\localhost\HSWebrn cp=E:\jboss-3.2.5\server\default\lib\snmp-support.jarrn cp=E:\jboss-3.2.5\lib\dom4j.jarrn cp=E:\jboss-3.2.5\server\default\tmp\deploy\tmp53041commons-logging.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\jaxrpc.jarrn cp=E:\jboss-3.2.5\server\default\lib\scheduler-plugin-example.jarrn cp=E:\jboss-3.2.5\server\default\tmp\deploy\tmp53037commons-beanutils.jarrn cp=E:\jboss-3.2.5\server\default\lib\jboss-transaction.jarrn cp=E:\jboss-3.2.5\server\default\lib\jboss-management.jarrn cp=E:\jboss-3.2.5\server\default\tmp\deploy\tmp53045jasper-runtime.jarrn cp=E:\jboss-3.2.5\server\default\tmp\deploy\tmp53049servlet-api.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\axis-ant.jarrn cp=E:\jboss-3.2.5\server\default\lib\autonumber-plugin.jarrn cp=E:\jboss-3.2.5\server\default\lib\jcert.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\classesrn cp=E:\jboss-3.2.5\server\default\tmp\deploy\tmp53038commons-collections.jarrn cp=E:\jboss-3.2.5\server\default\lib\properties-plugin.jarrn cp=E:\jboss-3.2.5\server\default\lib\jpl-pattern.jarrn cp=E:\jboss-3.2.5\server\default\deploy\http-invoker.sar\invoker.warrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\saaj.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\ot-common.jarrn cp=E:\jboss-3.2.5\server\default\lib\jsse.jarrn cp=E:\jboss-3.2.5\server\default\tmp\deploy\tmp53063jms-ra.rarrn cp=E:\j2sdk1.4.2\jre\lib\ext\dnsns.jarrnrn2009-05-27 22:56:25,250 ERROR [org.apache.jasper.compiler.Compiler] Error compiling file: /E:/jboss-3.2.5/server/default/work/jboss.web/localhost/HSWeb//org/apache/jsp/contract/register\manage_005fview_jsp.java [javac] Compiling 1 source filernrnE:\jboss-3.2.5\server\default\work\jboss.web\localhost\HSWeb\org\apache\jsp\contract\register\manage_005fview_jsp.java:32: cannot access hs.oajk.SAPInf_DBrnbad class file: E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\classes\hs\oajk\SAPInf_DB.classrnclass file has wrong version 49.0, should be 48.0rnPlease remove or make sure it appears in the correct subdirectory of the classpath.rnimport hs.oajk.SAPInf_DB;rn

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试