How do I import gdax-Java into my android studio app - android

I downloaded the git hub for gdax-java to my MacBook.
I don’t see any .jar file or a .aar file to import into my android studio app
There is no gradle dependency listed in the repository
How do I use this api in my android studio app?
I even tried ./gradlew jar and I get this error
Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.
Why is this so difficult to implement?

Here is what I had to do. https://dzone.com/articles/installing-openjdk-11-on-macos
Then the steps of ./gradlew build and ./gradlew jar worked and I could add the jar to the libs folder following these steps. How to add a jar in External Libraries in android studio
It would be nice if the ./gradlew steps would be indicated in the github

Related

Migrate Eclipse app and libs to Android Studio

I have an Android app project in eclipse that references to 3 libs+ some jar files and I would like to migrate all to Android studio.
First, I export "generate Gradle build files" (app) and succeed import in Android Studio.
I tried to create root folder manualy but the Imports in the App "cannot resolve symbol .."
How do I migrate the rest libs and jars and implement them?
If you want to move the rest of your libs and jars to Android studio, you can do it in three different ways. Please read this link https://stackoverflow.com/a/35369267/5475941. In this post I explained how to import your JAR files in Android studio and I explained all possible ways step by step with screenshots. I hope it helps.
No need to export your project in android studio manage itself ,
open android studio and select import project (eclipse adt etc)
browse to your project root directory and pick your main project not
library or dependent project .
start wizard to import and wait to complete gradle build.

Cordova 3.3.x - Android CordovaLib

When was the cordova.jar file removed from Cordova and replaced with CordovaLib? I was previously running Cordova 3.1.0-0.1.0.
Today I have upgraded to Cordova 3.3.0 (which was quite a headache, but I've completed the upgrade) and I've noticed a difference in my Android project structure: Cordova has created my project (with what I've named it) and it has also created -CordovaLibs.
Is this right? I know iOS it does this - but not Android (as I say, usually a JAR is added).
It's introduced in 3.3, had me baffled too.
Cordova 3.3 release notes:
http://cordova.apache.org/announcements/2013/12/16/cordova-330.html
CB-5232 Change create script to use Cordova as a Library Project
instead of a .jar
To generate file cordova3.3.0.jar, just follow these steps bellow:
Open your cmd, and go to the root folder where Cordova is installed:
$ cd ~/.cordova/lib/android/cordova/3.3.0/framework
Run the following command, notice the trailing dot
$ android update project -p .
Use ant to generate file jar. Be sure you have configure PATH for
$ ant jar
Now, you can copy file cordova3.3.0.jar to libs directory and import to your project. Hope it's helpful

how to import Eclipse project to Android Studio without Eclipse

I get Android project from Eclipse, and I can import it to my Android Studio. I read all instructions about it... first step is export this project from eclipse. But I dont have eclipse and I cant install it.
Can I import this project without Eclipse?
Thanks a lot.
The documentation at the developer site says:
Note: It's possible to import an existing Android project to Android
Studio even if you don't generate a Gradle build file from
Eclipse—Android Studio will successfully build and run projects using
an existing Ant build file. However, in order to take advantage of
build variants and other advanced features in the future, we strongly
suggest that you generate a Gradle build file using the ADT plugin or
write your own Gradle build file for use with Android Studio. For more
information about the Gradle build system, see the Gradle Plugin User
Guide.

Generate Gradle Build files complains about missing dependencies

I am trying to import this Android Backend Starter Client project into Android Studio.
It's an Eclipse project which means that to import it into Android Studio it needs to be exported from Eclipse with the Generate Gradle Build files option.
The project has as dependency Google Play services. I have imported the Google Play Sevices source code from the SDK as another Eclipse project.
The issue is that when I try to export the main project, Eclipse complains that it cannot find the Google Play Services project, even though the project is open in Eclipse. See the image below.
I have to mention that both of the projects are compiling and that I am using the Windows version of Eclipse.
I managed to export the project from eclipse. The issue was that the google-play-services_lib project was not located in the same workspace as the solutions-mbsac project. Once I moved it to the same workspace the export worked.
To import it into Android Studio I still had to modify the generated gradle.build files a bit and to update to the latest gradle.
The Eclipse export generates paths for the source files, but it generates them with \. This causes the import into Android Studio to fail. The \ need to be replaced with /.
To update to the latest gradle I just replaced the dependencies in the gradle.build file and replaced the gradle-wrapper files with other files generated by Android Studio.
After making all these changes the project imported successfully into Android Studio.

Android ActionBarSherlock on NetBeans - working but editor showing errors

I'm using NetBeans for android application. I installed properly (I think) ActionBarSherlock package as android library project. Everything works fine, I can build and run application, but code editor doesn't recognize ABS classes (just look at screenshot, BUILD SUCCESSFUL but errors exists) and code completion doesn't work too.
My configuration:
Stable NetBeans 7.2 with android plugin ver. 1.13
Linux Mint 13 Maya 64 bit, Mate
ActionBarSherlock ver 4.2 (stable)
How I installed ABS:
Download and extract source
From sdk/tools run command:
./android update project -p path_to_ActionBarSherlock/library/
Similar command to connect android project library with my test project (there is similar option in Netbeans IDE but I get error that this is not android library project)
./android update project -l path_to_ActionBarSherlock/library/ -p path_to_my_test_project
I have tried clean and build on both projects but no results. Any idea?
Regards
The way I finally managed to add ActionBarSherlock to my android project on Netbeans was to:
Download the latest version of ActionBarSherlock and unzip it
Go to the subfolder called library and remove the pom.xml file from there (with one of the previous versions it didn't work. I had to first build it, close it and remove not only pom.xml but also some netbeans properties files)
Open that subproject (library) in the Netbeans
Now this project will no longer be seen as a maven project. Netbeans will see it as an Android project. Then I:
Clean&build it
Add it to my-project's library properties (right-click on my-project, properties, library, add, point the proper location of library project). Important here was to copy/move that library project somewhere near my-project. Otherwise it claimed that it cannot open it.
And from now on it works fine.
Key to that thinking was that Netbeans didn't want to add the provided library project cause it saw it as a Maven project. When the pom is deleted, Netbeans no longer sees it as Maven project nut as an Android project and it can without any objections add it as an Android's project library.
Probably there are better solutions, but I didn't find any and that was the only one working for me.
Hope it helps.
You can also make a new Android project, and then copy and paste the needed files in the new project.
So only copy:
libs, res, src, AndroidManifest.xml

Categories

Resources