Trying to add zendesk sdk - android

I am trying to add the zendesk sdk to my app and seem to be getting issues
build.gradle(Project:my app)
buildscript {
ext.kotlin_version = '1.2.71'
repositories {
google()
mavenCentral()
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0'
classpath 'io.fabric.tools:gradle:1.+'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.firebase:firebase-plugins:1.1.5'
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://zendesk.jfrog.io/zendesk/repo' }
jcenter()
maven { url "http://files.couchbase.com/maven2/" }
}
}
build.gradle (Module: MyModule)
buildscript {
repositories {
mavenCentral()
}
}
repositories {
mavenCentral()
maven { url 'http://files.couchbase.com/maven2/' }
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://jitpack.io' }
jcenter()
flatDir {
dirs 'libs'
}
}
dependencies {
...
implementation 'com.zendesk:sdk:1.11.0.1'
}
im trying to change implementation 'com.zendesk:sdk:1.11.0.1' to 'com.zendesk:support:3.0.1' to get to add the zendesk live chat to my app.
I either get cannot resolve com.zendesk:support:3.0.1 or AAPT2 error about it not being able to mergeResources.

Related

Could not GET 'https://kotlin.bintray.com/kotlinx/androidx/navigation/navigation-safe-args-generator/maven-metadata.xml'

static def addRepos(RepositoryHandler handler) {
handler.google()
handler.jcenter()
handler.maven { url "https://kotlin.bintray.com/kotlinx/" }
handler.maven { url "https://jitpack.io" }
}
buildscript {
ext.kotlin_version = '1.4.10'
apply from: 'versions.gradle'
addRepos(repositories)
dependencies {
classpath deps.android_gradle_plugin
classpath deps.kotlin.plugin
classpath deps.navigation.safe_args_plugin
classpath deps.hilt_android_gradle_plugin
classpath deps.firebase.google_services
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30"
}
repositories {
google()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
mavenCentral()
}
}
allprojects {
addRepos(repositories)
repositories {
google() // Google's Maven repository
maven { url 'https://jitpack.io' }
}
}
repositories {
google()
jcenter()
mavenCentral()
}
Your didn't specify the version number.
def nav_version = "2.4.0"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"

Peer not aunthenticated error

My build.gradle file:
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.google.gms:google-services:4.0.1'
}
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}
allprojects {
repositories {
jcenter()
maven {
name "jcenter"
url "http://jcenter.bintray.com/"
}
}
I am getting the error Peer not authenticated and i am unable to sync the gradle.
How to solve this issue?

Gradle build error (Could not find tracker.jar)

Could not find tracker.jar (com.android.tools.analytics-library:tracker:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/analytics-library/tracker/26.1.2/tracker-26.1.2.jar
I have fixed this error
Please update your build.gradle of project file like this:
buildscript {
repositories {
mavenLocal()
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:4.0.1'
classpath 'io.fabric.tools:gradle:1.25.4'
}
}
allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url "https://jitpack.io" }
}
}
Put jcenter() below google().This helps me after 24 hr wasting time in searching for Jar file.
I solved this error by add 'mavenCentral' to build.gradle
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

Android: Gradle imports failing to resolve

I am trying to install with gradle this library:
https://android-arsenal.com/details/1/6652
It NEEDS jitpack in the gradle:
allprojects {
repositories {
jcenter()
maven {
url "https://jitpack.io"
}
}
}
All fixes I have found result in me having to replace the above with maven.google.
I need to use jitpack.
The errors i get:
Failed to resolve com.android.support.appcompat.
Add https://maven.google.com or google() to your repositories block.
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
maven {
url "https://jitpack.io"
}
}
}
OR
allprojects {
repositories {
jcenter()
google()
maven {
url "https://jitpack.io"
}
}
}
Add AppCompact lib as below:
In the app.gradle, add appCompact lib:
implementation "com.android.support:appcompat-v7:27.0.0"
Add google() as below:
allprojects {
repositories {
jcenter()
google()
maven {
url "https://jitpack.io"
}
}
}

Adding a Maven url in Android Studio Gradle

I have the following build.gradle file:
buildscript {
repositories {
jcenter()
maven {
url "https://another.url/repo"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
allprojects {
repositories {
jcenter()
}
}
How can i add a second maven url like this one: "${System.env.HOME}/.m2/repository"? i have to keep the another url repository.

Categories

Resources