简体   繁体   English

编译我为basic4android包装的lib时显示错误

[英]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进行了编译。

这是我的项目和OvalShadow类

I forgot use 我忘了使用

@DependsOn @取决于

for calling Additional jar in folder libs. 用于在文件夹库中调用其他jar。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android编译时间错误存档所需的库:项目'AndroidMagickActivity'中的'lib'无法读取或不是有效的ZIP文件 - Android Compile time error Archive for required library: 'lib' in project 'AndroidMagickActivity' cannot be read or is not a valid ZIP file 当我通过git提交时,android studio显示乱码 - android studio show gibberish when I commit through git 使用来自 github 的包时尝试编译 golang 时出错 - Error when trying to compile golang when using package from github 当我编译时,我通过了configure但在“制作”时遇到了错误 - when i was compile, i passed configure but encounter errors when i was 'making' 编译ReactAndroid,fbjni报错 - Compile ReactAndroid, fbjni error 运行“git fetch”等基本 git 命令时出现 kex_exchange_identification 错误 - kex_exchange_identification error when running basic git commands like "git fetch" 将更改从 teamcity 推送到 git 时出错(ssh_askpass: exec(/usr/lib/ssh/ssh-askpass)) - error when pushing changes to git from teamcity (ssh_askpass: exec(/usr/lib/ssh/ssh-askpass)) 关于如何编译这个 android 项目的困惑 - Confusion on how to compile this android project 编译要在Android Studio中使用的GitHub项目 - Compile GitHub Project to be used in Android Studio 推拉时出现Git错误 - Git error when I push and pull
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM