Android - Including library project from another library project - java

I have an android application and two Android library projects. The application project requires 1st library project and has it on its Android dependencies. The 1st Android library project requires the 2nd Android library project and has it on its own Android dependencies. The problem is that the 1st Android library project does not see resources from 2nd Android library project and the are comiplation errors. How to configure the projects?

Related

Version gradle for different modules

I am really confused about how gradle works with android subproject and simple server-java subproject tied to Project.
Android is using not the latest version of gradle, but my server app can use it.
Should I use the minimum version that supports all modules, or can I somehow edit the build file for each module?

Linking eclipse project as library to Android studio

Eclipse has this neat feature where you can set one project to build path of another project so that you can separate the two projects as library and the application while maintaining the independence of editing these projects as desired.
This also helps as change in library project is immediately reflected onto application project
Now I want to do something similar for android studio , but the library that my android project is being built on is a java project in eclipse IDE.
Currently what I do is make some changes in library project eclipse then export it as jar file and then import it on android studio.
This is tedious as I want to develop the library project in eclipse alongside the android project and exporting and copying over the jar files manually is slow
Is it possible to do any of the following:
Setup eclipse project such that its build outputs/updates a jar in the libs folder of android project each time project is built in eclipse?
Link the Android studio project's build path to include the eclipse project
Edit the java project on android studio along side the Android project and link them both
Android Studio is the official integrated development environment (IDE) for Google's Android operating system, built based on JetBrains' IntelliJ IDEA software. Android Studio uses Gradle
In answer to your question
You have to understand Build Process with gradle in Android Studio.
You can import your Android project.
And Add your library as a dependency
Create an Android Library
Add as a dependency for your Andriod app modules or other Java projects.
I recommend reading this site.following Site
Projects Overview

how to get Android-Studio modules name I Intellij Plugin development

I want to develop plugin for Android studio for this I am using Intellij idea plugin APIs. For this I need to get project module names in project. Can anyone suggest how i can get list of modules in android studio project using intellij plugin APIs.
com.intellij.openapi.module.ModuleManager#getModules

How can I bring Google play services into my libGDX Gradle project?

After adding Google Play Services to integrate Google ads into my libGDX project in Eclipse, I can no longer use Gradle to build my Android project.
I know that's because I need to tell Gradle about the new Google Play project dependency so I added compile com.google.android.gms:play-services:5.0.89 to the dependencies section of the :android project however it complains that it could not find com.android.support:support-v4:19.1.0.
I guess that means I need to somehow tell Gradle this new dependency depends on another dependency?
Everything works fine in Eclipse so the dependency of my Google Play project in Eclipse is for sure golden, I just need to make Gradle the same way. Do I need to declare the Google play project as another Gradle project and make a build.gradle file for it? I don't think I should be touching the Google Play project contents at all.
If you have downloaded the tools and google reprositories using the Android SDK Manager (1st thing to check), check if your build.gradle files do not need to be updated (what libGDX version are you currently using?).
I had the same problem and solved it by replacing my Android's module build.gradle file by a brand new.
To do so, use the last ligdx setup ui (https://github.com/libgdx/libgdx/wiki/Project-Setup-Gradle) to create a fresh project then compare/replace gradle files.
Under your android module there's a build.gradle file. Add the following:
dependencies {
compile 'com.google.android.gms:play-services:6.1.11'
}
Check for the latest version of Google Play Services and update your version number accordingly.

package com.google.android.gms.maps.model does not exist

I am in Android Studio and this is a NON GRADLE project.
I have installed google play services, and google repository through sdk manager. I have imported google-play-services_lib as a module and added the google-play-services.jar as a library.
Yet for some reason my android-maps-utils files can't find my play services references.
import com.google.android.gms.maps.model.LatLng
in com.google.maps.android.clustering.Cluster.java says model doesn't exist.I can see the file in the play services library inside my project as shown below:
So why can't this file pick it up?:
I had to add dependencies for my project and each of my 3rd party libraries.
In Android Studio File > Project Structure > Libraries > choose a library > on the bottom of the dialog there should be a + button. Click that and then add dependencies. I think I added them as libraries (whatever the second option was)

Categories

Resources