Android Library Project on Jenkins with Gradle - android

I am new to gradle. I am trying to integrate an android project which is built with maven on jenkins to gradle. I have two projects, one of them is a library project which is developed by me and the other one is the app, which uses this library project.
It can be done on Android Studio with compile project(':XXX') but don't know how to do it on Jenkins.
Any help appreciated! Thanks

Related

importing github project into android studio

I set up git in Android Studio
http://maxrohde.com/2014/08/18/import-github-project-to-android-studio/
Then imported this project
https://github.com/GautamGupta/Simple-Android-OCR
The following error was displayed:
Migrate Project to Gradle?
This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system.
What can I do to fix this?
That project hasn't been modified in two years, really four for most of the project, so it uses the older project layout and was very likely developed using Eclipse rather than Android Studio.
Here is the Google reference for migrating a project from Eclipse to Android Studio:
https://developer.android.com/sdk/installing/migrate.html
An option if simply importing doesn't work is to install Eclipse and do an export from there to Android Studio. While you could just work in Eclipse it is deprecated for Android development and you'll find many more up-to-date resources for Android Studio.
How do you import an Eclipse project into Android Studio now?
Android Studio's default build system is Gradle. That GiftHub project is not using Gradle build system. Probably created from Eclipse (Ant build system)
So when you open a project that does not use Gradle build in Android Studio, it will ask to convert the Project to Gradle based build. You just give yes on the popup, it will take care of everything.
http://gaut.am/making-an-ocr-android-app-using-tesseract/#comment-184181
here it explains solutions for gradle errors
That's not an error!
The recommended build system for android projects is gradle.
But the author of this project in github did it using only eclipse without any special build system.
You just need to answer "yes" to that popup message and Android studio will convert the project to use gradle

How can I tell which IDE an Android project was made with?

For example this project. I see it has Gradle files, but a quick search says Eclipse has a Gradle plugin as well.
https://github.com/sephiroth74/HorizontalVariableListView
The Android build system is built on top of gradle:
https://developer.android.com/tools/building/plugin-for-gradle.html
So that means that just plain gradle is not enough to build an Android project.
As ADT never used gradle and Google has ended Eclipse support, you can be reasonably confident that an Android gradle project was made using Android Studio.
Gradle is a building tool. It has plugins for Eclipse, IntelliJ, Android Studio and Netbeans. So you won't be able to tell which IDE an Android project is made with from just a gradle file. Some project structures vary, for Eclipse projects and IntelliJ ones, you can find easily differences between them if you are familiar with both. But some are not explicitly, for IntelliJ projects and Android Studio ones.
BTW, do IDEs matter? The App you are building does, I am afraid.
Android Studio, which is developed based on IntelliJ. It uses gradle to build the project.
If a project contains .classpath or .project, it should be made by Eclipse. Or it should be made by android studio. A project made by android studio can not be imported into eclipse.

Migrating from Eclipse to Android Studio and use Gradle instead of ant

I migrated an Android project from Eclipse to Android Studio. I have the project in Android Studio but I would like to use "Gradle" instead of ant as the build system.
What's the best way to make this conversion?
It wasn't automatic for you? It was for me; which seems a little odd, but I do realize that Android projects were formerly built with ant. So... here's a link to a post that should help you migrate from ant to gradle: Migrate from Ant to Gradle

Make an Android Project to maven Project using Android Studio

I am using Android Studio and I have no experience at all with Maven.
I have an android project created with Android Studio and I have to make this project a Maven project in order to provide the repository to another partner so they can integrate different partner's work into a one project.
The problem is that I cannot find how to make this maven repository and import my project.
Any one who can help please?

Android studio gradle

I recently downloaded the android studio and can't understand a few things.
I don't know gradle, and don't really need it, do I have to use it on android studio?
how do I create a run configuration without a normal android module?
Gradle is a project automation tool that builds upon the concepts of Apache Ant and Maven.
Android Studio is using Gradle as its build tool.

Categories

Resources