I've been trying for the past few days to make a Java library work with an Android app. The library is called WooCommerce API Java Wrapper and it's open-source. The problem is that I'm getting a compile time error which is the following: Return code 1 for dex process.
I have already searched on Google, Stackoverflow and many other sites for help with no luck. I've tried everything from changing Java version and adding Jack support (mentioned in the Github issue with the link below) to enabling multidex.
I've already tried getting help from the developer but he doesn't have any experience with Android app development. And from my side, I don't have any knowledge on how Java/Android libraries work.
I opened an issue on the Github repository of the library itself: https://github.com/icoderman/wc-api-java/issues/10
Please keep in mind that I'm still a beginner in Android development itself. Any help is greatly appreciated.
Related
I am a new programmer, and I am learning JavaFX now. But I want to make Android apps too, and I searched for it online. I saw a few people was saying that we can create Android apps with JavaFX too. But there is no course or anything on how I can use JavaFX for Android app development. How can I create Android apps with JavaFX?
Thanks in Advance.
BTW I am using VS Code and have a JavaFX sdk installed. I did not found much results on the Internet. Please help me, I am a beginner, and I don't know how to do that.
In order to build JavaFX apps for Android (and also iOS) you need to use the tooling provided by Gluon. Extensive documentation can be found here: https://docs.gluonhq.com/
There are also some tutorials, e.g., this one https://foojay.io/today/creating-mobile-apps-with-javafx---part-1/
I have been trying to create an empty Android Application in IntelliJ and cannot get it to work at all. All my issues are with Gradle refusing to be cooperative with the basic dependencies needed for Android development.
I have spent hours messing with different versions of gradle, java, and android sdk. The most confusing thing for me is that it is a brand new project. It should work before I start changing things already, so I'm not sure what I am doing wrong. I have tried starting a project in Android Studio and that works perfectly fine.
Does anybody else have issues using IntelliJ for android development? Is it more common practice to just use Android Studio or is IntelliJ more the industry standard?
IntelliJ is a Java IDE for java programs, because Android uses Java (or Kotlin) it has a plug-in so you can make Android Apps. Android Studio is designed solely for the purpose of making Android Apps and has a lot of great documentation and user-friendly features. Back in the day before Android Studio people used Eclipse to make Android Apps and it became depreciated and everyone had to switch and learn Android Studio. If you do manage to get IntelliJ working, likely in the near future it will become depreciated and you will just have to learn Android Studio anyway.
Most of them seem to be extremely difficult to follow or don't work on new distros. Or maybe I'm just stupid.
I want it to work with OpenCV and have been following a series where they install JNI here:
https://www.youtube.com/watch?v=mF9fYdXfSD8&t=44s
But apparently that doesn't work on newer versions and there's a better way of doing it but I'll be damned if I can figure it out.
So I tried this tutorial:
https://codelabs.developers.google.com/codelabs/android-studio-jni/index.html?index=..%2F..%2Findex#0
but it's giving me Plugin with id 'com.android.application' not found which means somethings fucked with gradle as I tried to change it...so I'm not really all that sure what to do now. Any links or solutions on Android Studio 2.2.3 with 3.3 gradle?
Not really sure what else to do other than ask people...
If I could have any help that would be great. I'd say what I specifically tried but I don't understand enough about JNI to say what I actually tried.
I just need a very basic step by step, like I've never used Android studio before, of how to do this...because all attempts at understand here is failing me entirely.
Thanks for any help you can give :)
I am developing a word game. My aim is to have 90% of the code in pure Java, which is then referenced by Android Studio for an android app, by GWT to make a web solution and exported into objective C for iOS for the small amount of UI coding needed.
I have written all the code and I am only able to do this by manually copying the java classes between the projects. Clearly it must be possible as this seems such an obvious use case, but there does not seem to be a straightforward solution.
I realise I may be missing something. I have searched extensively, in particular the following:
Import source java project in Android project
Android studio add external project to build.gradle
Any help would be much appreciated.
Apparently OpenFeint supports both iOS and Android. Great.
But how do I integrate it with cocos2d-x Android? The SDK is, apparently a .jar and such. Cocos2d-x uses c++.
I don't get this tutorial: http://blog.molioapp.com/2011/11/openfeint-and-admob-integrated-with.html
I copy & paste the code and immediately I get errors (JavaVM *gJavaVM;? There is no identifier called that way!)
Are there any other steps not mentioned in that tutorial I missed?
Yes. In order to build a C++ library for Android you need to use the NDK. Getting that set up is pretty involved so I am just going to link you to a separate tutorial that has already covered it.
http://developer.android.com/sdk/ndk/index.html#installing
That is the Google documentation on getting up and running. There are other resources for this as well if you have trouble.