Hello everyone
I hope you are good
I want to ask you that I finds jar files of library but I could not get it
Most of library provide its dependency
Please tell me can I add dependency in my extension at place of jar file if yes then how and if no then please tell me how can I get jar from dependency
See the source code of the TaifunGoogleAccount extension. There is a jar library added.
https://puravidaapps.com/accountmanager.php
The jar itself is dependency and did you search on the forum?
https://community.appinventor.mit.edu/search?q=add%20libraries
Go through the posts on the topic and you will find what you're looking for:
The extension build system only copies class files in the same package (plus any subpackages) of the extension. Because you're using Java files in a separate package, they won't be picked up by the extension system. The easiest thing to do would be to compile the dependency Java files to get the class files and put them into a JAR file (using the zip or jar utilities) and then place that in lib and make use of the library functionality built into the extension system since it knows how to pick u…
You can find most of the dependencies at:
https://mvnrepository.com
2 Likes
I have tried but I couldn't get it from maven
1 Like
Visit the link. There is java code. There is an example in the code on how to add a jar to an extension.
If there is no dependency on the maven then try compiling it and using it.
1 Like
The problem is not that I know how to add library in extension
The problem is that I couldn't get jar file
Wherever I find the jar I have got the dependency
May you please elaborate me how to decompile and what I have to decompile
You can download jars from the link provided by @Kumaraswamy
1 Like
You may have misunderstood me.
1 Like
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
If you do not have the dependency or the library (.jar) then you will have to compile it yourself as said above.
Google it. Or you can use it's java files instead of library but make sure the extension's package name and the lib's package name is same.
Kumaraswamy:
The extension build system only copies class files in the same package (plus any subpackages) of the extension. Because you're using Java files in a separate package, they won't be picked up by the extension system. The easiest thing to do would be to compile the dependency Java files to get the class files and put them into a JAR file (using the zip or jar utilities) and then place that in lib and make use of the library functionality built into the extension system since it knows how to pick u…
Did you have read this post??