A have some problem with adding external maven libraries to my Android Gradle project.
My application need Facebook SDK and YouTube API to work propertly.
I just download facebook SDK, create module and add dependecies in Project Structure and it work perfectly. In the case of YouTube, Google does not provide gradle SDK, but only Maven sample project.
When I just import that project, Maven download all dependecies to external librares and I can run sample codes, but I can't use this in my android project.
My question is: How to add Maven Youtube libraries to Android Gradle project ?
Thanks for answers.
have you tried compile 'com.google.apis:google-api-services-youtube:v3-rev107-1.18.0-rc'
Related
I am trying to use Codenvy to develop, and I am switching from Android Studio. I am in the middle of a project. How can I transition? Can I use a special import feature? I have already tried to copy and paste the code, but a lot of libraries don't seem to be there. If you need to take a look at my source code, then just search up "calc-nigma" in Github search and you can click on the option that is made by beekaydev.
Thank you in advance.
The Problem is not with your code but the dependencies Codenvy is using is Maven while it seems that your application may be using Gradle dependencies.
For the Support of Answer:
Maven uses pom.xml file to build your project.
Gradle uses build.gradle file to build the project.
If you want to move your project to Codenvy try migrating your Gradle build to Maven build using this thread Migrating Gradle build.gradle to Maven pom.xml.
Hope this Helps!
I have a project hosted on GitHub at https://github.com/BoardiesITSolutions/NavigationDrawerManager.
I've seen some projects on GitHub state adding it to their gradle file in Android Studio to the dependencies section but this doesn't seem to be working for me.
I have tried compile: 'com.github.boardiesitsolutions.NavigationDrawerManager:+' but it keeps saying it can't find it, I've also tried replacing the + with the version number but no luck, Android Studio keeps saying it can't find it. I've added the repository MavenCentral as well.
Is there something I need to do from GitHub to make it accessible for Gradle?
I don't see it on maven.
You can use this website to use non-mavenized libraries with Gradle.
Just add maven { url "https://jitpack.io" } to repositories section of build.gradle and use compile 'com.github.BoardiesITSolutions:NavigationDrawerManager:0b14c84445' in dependencies.
I'm using maven to manage my dependency, how can i add the facebook-androidk-sdk 3.0.1 as library project in pom.
Where i can get the latest code for facebook sdk 3.0.1
I treed to build the apk, but I'm gettting following error please advice how to fix this issue
'drawable' with value '#drawable/com_facebook_picker_list_selector_background_transition'
Samith
The Facebook SDK is a normal Android library, in order to use it with Maven you need to do the following:
Create the apklib
Install the apklib in your local or remote repository
Add the apklib dependency to your project pom.xml
Take a look at the documentation for commands examples:
https://code.google.com/p/maven-android-plugin/wiki/ApkLib
You can obtain the Facebook SDK here: https://developers.facebook.com/android/downloads/
I have created android library project with some depndencies managed by maven.
Now I'm trying to run library code from android maven application project.
Code I wrote in library runs, but I'm getting NoClassDefFoundError on first call to dependecy.
Is there any way to make this work?
You may want to have a look at http://androidkickstartr.com/. This tool will create correctly mavenized project for you and you can then copy missing parts from pom.xml.
can i merge three maven android project into a single one using maven ?
thanks
regards
If the three projects are Android Library projects (<packaging>apklib</packaging>), you should be able to collect them into a single Android Application project (<packaging>apk</packaging>).
Using Maven Android Plugin version 2.9.0-beta-2 or later, you should be able to accomplish that.
Here are the release notes for 2.9.0-beta-1:
http://groups.google.com/group/maven-android-developers/browse_thread/thread/e7978fbf4e4b85f0?pli=1
This is where the apklib support in maven-android-plugin is documented:
http://code.google.com/p/maven-android-plugin/wiki/ApkLib
(be sure to read up on Google's official Android Library documentation which is linked from there too)
Look at the changelog for the latest version to use:
http://code.google.com/p/maven-android-plugin/wiki/Changelog