开发者社区> 问答> 正文

API网关AndroidStudio集成编译报错

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.alibaba.apigateway.service.HttpRpcService$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.

展开
收起
毕格网 2016-11-24 16:15:52 3251 0
2 条回答
写回答
取消 提交回答
  • 这个只是warning,告诉你代码中有一部分代码不符合最佳实践,不影响你的实际的编译结果的

    2019-07-17 20:28:51
    赞同 展开评论 打赏
  • 这种错误应该不影响你的编译和运行的,只是提示而已;
    我这边也有这个提示;
    Information:Gradle tasks [:app:assembleDebug]
    Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
    Error:(com.tencent.mapsdk.rastercore.d.d) that doesn't come with an
    Error:associated EnclosingMethod attribute. This class was probably produced by a
    Error:compiler that did not target the modern .class file format. The recommended
    Error:solution is to recompile the class from source, using an up-to-date compiler
    Error:and without specifying any "-target" type options. The consequence of ignoring
    Error:this warning is that reflective operations on this class will incorrectly
    Error:indicate that it is not an inner class.
    Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
    Error:(ct.ac) that doesn't come with an
    Error:associated EnclosingMethod attribute. This class was probably produced by a
    Error:compiler that did not target the modern .class file format. The recommended
    Error:solution is to recompile the class from source, using an up-to-date compiler
    Error:and without specifying any "-target" type options. The consequence of ignoring
    Error:this warning is that reflective operations on this class will incorrectly
    Error:indicate that it is not an inner class.
    Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
    Error:(ct.k) that doesn't come with an
    Error:associated EnclosingMethod attribute. This class was probably produced by a
    Error:compiler that did not target the modern .class file format. The recommended
    Error:solution is to recompile the class from source, using an up-to-date compiler
    Error:and without specifying any "-target" type options. The consequence of ignoring
    Error:this warning is that reflective operations on this class will incorrectly
    Error:indicate that it is not an inner class.
    Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
    Error:(ct.m) that doesn't come with an
    Error:associated EnclosingMethod attribute. This class was probably produced by a
    Error:compiler that did not target the modern .class file format. The recommended
    Error:solution is to recompile the class from source, using an up-to-date compiler
    Error:and without specifying any "-target" type options. The consequence of ignoring
    Error:this warning is that reflective operations on this class will incorrectly
    Error:indicate that it is not an inner class.
    Information:BUILD SUCCESSFUL
    Information:Total time: 38.147 secs
    Information:32 errors
    Information:0 warnings
    Information:See complete output in console

    2019-07-17 20:28:51
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Spring Boot2.0实战Redis分布式缓存 立即下载
CUDA MATH API 立即下载
API PLAYBOOK 立即下载