[英]show error when compile lib that I wrapped for basic4android
I wrapped a source github for b4a with Eclipse. 我用Eclipse包装了b4a的源github。
I added core.jar but when I compile the project in b4a it shows this error: 我添加了core.jar,但是当我在b4a中编译项目时,它显示此错误:
trouble processing "java/com/lsjwzh/widget/materialloadingprogressbar/CircleProgressBar$OvalShadow.class": Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library.
处理“ java / com / lsjwzh / widget / materialloadingprogressbar / CircleProgressBar $ OvalShadow.class”时遇到麻烦:在未构建核心库时,对核心类(java。*或javax。*)的用法不当或使用不当。
This is often due to inadvertently including a core library file in your application's project, when using an IDE (such as Eclipse).
这通常是由于在使用IDE(例如Eclipse)时在应用程序项目中无意中包含了一个核心库文件。 If you are sure you're not intentionally defining a core class, then this is the most likely explanation of what's going on.
如果您确定没有刻意定义核心类,那么这是最可能的解释。
However, you might actually be trying to define a class in a core namespace, the source of which you may have taken, for example, from a non-Android virtual machine project.
但是,您实际上可能正在尝试在核心名称空间中定义一个类,例如,您可能从非Android虚拟机项目中获取了该类的源。 This will most assuredly not work.
这肯定是行不通的。 At a minimum, it jeopradizes the compatibility of your app with future versions of the platform.
至少,它损害了您的应用程序与平台未来版本的兼容性。
I changed package name from 我将包裹名称从
java.com.lsjwzh.widget.materialloadingprogressbar
to 至
com.lsjwzh.widget.materialloadingprogressbar
Why show in error - 为什么显示错误-
"java/com/lsjwzh/widget/materialloadingprogressbar/CircleProgressBar$OvalShadow.class"
“ java / com / lsjwzh / widget / materialloadingprogressbar / CircleProgressBar $ OvalShadow.class”
? ?
I rebuilt the project in eclipse and compile with SimpleLibraryCompiler for b4a. 我在eclipse中重建了该项目,并使用SimpleLibraryCompiler for b4a进行了编译。
I forgot use 我忘了使用
@DependsOn
@取决于
for calling Additional jar in folder libs. 用于在文件夹库中调用其他jar。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.