简体   繁体   English

如何将带有库的JAR编译为APK

[英]How to compile JAR with library to apk

I get jar file with library from NetBeans and i cant convert it to apk. 我从NetBeans获取带有库的jar文件,但无法将其转换为apk。 Converter ask JAD and JAR files. 转换器询问JAD和JAR文件。

I have one main jar and two more in lib folder. 我在lib文件夹中有一个主jar和另外两个。

You can't convert .jar file to .apk! 您不能将.jar文件转换为.apk! inside a jar file we have .class files but inside the .apk we have .dex files which .dex files can convert to .class and after that .java. 在jar文件中,我们有.class文件,但在.apk中,我们有.dex文件,.dex文件可以将其转换为.class,然后再转换为.java。 so you can see a jar file is one step behind the .apk file 因此您可以看到jar文件比.apk文件落后一步

将项目(模块)设置从库更改为应用程序。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM