I want to include android libraries in my java project. Actually, I need to run android code in java environment , obviously, this android code would not contain any GUI based action, it will simply use android's predefined libraries ... please suggest to me how android's libraries can be included in java project. Thanks in Advance !
Find the JAR file containing the libraries you want to use, and add them to the Java project's build classpath.
However this may not work, depending on the Android classes you want to use. Some Android classes will have dependencies on the Android platform which will make it unlikely they will work ... or even load ... on a regular Java platform.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With