Android support library setup with maven
unfortunately those libraries are not in the central maven repository. so you have to use the maven-android-sdk-deployer (link) to install the libraries into your maven repository. then add the needed libraries to your pom.xml file as described in the readme.
Gradle and Android support library
We will provide artifact versions of the support libraries. Stay tuned.
Edit: The artifacts are now available. You have to download "Android Support Repository" in your SDK. The gradle build system will automatically use this as a local Maven repository.
There are 3 artifacts in it right now:
com.android.support:support-v4:21.0.0
com.android.support:support-v13:21.0.0
com.android.support:gridlayout-v7:21.0.0
com.android.support:appcompat-v7:21.0.0
Android Support Library v7 + Maven + Eclipse: apklib dependency not found in workspace
First, there is no apklib for com.android.support:appcompat-v7. It only ships as an aar.
Second, that library is not available in maven-central, it ships with the Android SDK.
You need to manually deploy it to your local maven repository.
Though you can use maven-sdk-deployer to construct and deploy the apk to your local folder. But you github project is failing due to missing internal dependencies.com.msplearning.android-support-v4:jar:19.1.0
, com.msplearning:android-support-v7-appcompat:jar:19.1.0
How can i get the android support library version greater than 47
According to the Support Library Setup page:
The support libraries are now available through Google's Maven repository. We no longer support downloading the libraries through the SDK Manager, and that functionality will be removed soon..
Instead, you just simply include them by adding the google()
Maven repo. Put this in your top-level build.gradle's repositories
section:
allprojects {
repositories {
google()
}
}
Then you can just implement the support libraries in your app-level build.gradle.
What's the correct way of exposing a support library dependency in an Android library using android-gradle 3?
Is there any way to avoid this by configuring the library different,
or should this be the result?
Unfortunately, this the expected result. The reason of this issue is that JVM
doesn't allow to have more than once class with the same package and name.
Am I wrong in assuming that different versions of the appcompat lib
should be allowed in the library and in the consuming app?
As I said, this is a JVM
restriction.
Should I instead publish multiple binaries, each compiled against a
different version of the support library to satisfy any given consumer
setup?
This is the only solution that you have, even do it's very painful.
Cannot install Support repository and sync project in Android Studio
Try using the latest support library versions:
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.google.android.gms:play-services-vision:10.2.1'
compile 'com.android.volley:volley:1.0.0'
// Third party libraries
compile 'com.flurgle:camerakit:0.9.17'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
here is the detail Dependencies
EDIT
Use Google Maven Repository
To add them to your build, you need to first include Google's Maven repository in your top-level build.gradle file:
Project -- build.gradle (Not app build.gradle
)
allprojects {
repositories {
// If you're using a version of Gradle lower than 4.1, you must instead use:
maven {
url 'https://maven.google.com'
}
// An alternative URL is 'https://dl.google.com/dl/android/maven2/'
jcenter()
}
}
I cannot use Android support libraries or Play Services via Gradle in one of my projects
Check you Android sdk folder.
You should find this folder under this:
androidSdk/extras/android/m2repository/com/android/support/appcompat-v7/20.0.0
If this folder doesn't exist:
- update the SDK Manager and update the Android Repository (the last block).
Also I suggest you using the last releases:
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:support-v4:21.0.3'
Related Topics
How Can Write Code to Make Sharedpreferences for Array in Android
Getting Permission Denial Exception
Touch and Drag Image in Android
Android Bluetoothdevice.Getname() Return Null
Android Recyclerview Findviewholderforadapterposition Returns Null
Get Nfc Tag with Ndef Android Application Record (Aar)
Restrict Edittext to Single Line
Circular Reveal Transition for New Activity
Developing an Android Homescreen
How to Get Number of Lines of Textview
Continually Running Background Service
How to Set Alarm in Android Programmatically
Error Inflating Class and Android.Support.V7.Widget.Cardview
Android App Enable Nfc Only for One Activity