I am very new at Java for Android and I am using Electric Eel version of Android Studio. Course when I use learn android says that ı have to dwnload Android Support Repository. It says that I can download from SDK Manager but I couldn't find it there. Would you help me to find?
enter image description here
I want to download Android Support Repository. I found something different about The support repository is long gone and no longer needed. Is that true?
android support libraries are now available through Google's Maven repository
To add a Support Library to your application project:
Include Google's Maven repository in your project's settings.gradle file
check this link for more information
Related
I recently updated my android studio to version 3.0 and I have an android library I needed to update and as well upload to bintray.
I was able to upload the library, but pulling the library from the repository prove abortive.
I have checked the path to the library and it actually exist in the remote repo, which underscore the possibility of the library not existing in the remote bot the pom file and the aar exist upstream.
I have spent more than neccessary time on this. I will appreciate any help in the right direction
I am trying to learn more about DWOLLA, using their sandbox. I am mainly interested in using their access API with an android APPLICATION. The Dwolla API Docs says, "Download and build the JARs to use this library. Maven is required to manage this project's dependencies." The following are the links:
git clone https://github.com/Dwolla/dwolla-swagger-java
cd dwolla-swagger-java
mvn install package
How do I integrate the above in an android application/project. My assumption is that I would have to do it in gradle but I am not certain.
Android apps' dependencies are managed with Gradle.
The default repository is JCenter.
The Dwolla SDK is found here.
All you have to do is, on that page, click on 'gradle' and you get the line that you have to your app's build.gradle file.
Here it is compile 'com.dwolla:dwolla-java-sdk:2.0.9'.
Add that to your app module's build.gradle under dependencies, refresh the project and you should be fine.
Firebase SDK 9.0.0 is exciting but I cannot find the plain java version of its library. The older 2.5.2 doc used to have separate SDK for Android and plain JVM, I cannot find this information in the new doc.
Is there a way to use this SDK for non-Android project, like say, JavaFX? If not, will I run into a problem for still using the older 2.5.2 SDK on my JavaFX project?
Yes you can. Look under Server in the docs instead of the Android section.
We publish the Firebase Java SDK to the Maven central repository. To
install the library, you can simply declare it as a dependency in your
build.gradle file:
dependencies {
compile 'com.google.firebase:firebase-server-sdk:[3.0.0,)'
}
If you use Maven
to build your application, you can add the following dependency to
your pom.xml:
<dependency>
<groupId>com.google.firebase</groupId>
<artifactId>firebase-server-sdk</artifactId>
<version>[3.0.0,)</version>
</dependency>
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.
I am trying to configure an eclipse project such that it will be easy to import by another programmer, and keep the git repository light. I really like maven for my java ee projects, but i was unable to use it.
For now, my android app need this:
facebook android sdk
google play services
amazon s3 android sdk
support library v4
It seems there is no clean way of doing this, only hacks and workarounds. I am using the eclipse IDE. Any ideas?