Here I am attaching image
I'm trying to place maven here but It's not adding here giving me some error.
here I'm attaching the second image , with Exact Error.enter image description here
Since Android Studio Arctic Fox, it has changed to settings.gradle file:
Please check the project level Gradle file and change accordingly.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
I hope it's helpful to you!
Go to build.gradle(project) and add
allprojects {
repositories {
maven {
url "https://jitpack.io";
}
}
}
References:
build.gradle(Module)
build.gradle(project)
Related
plugins {
id 'com.android.application' version '7.3.0' apply false
id 'com.android.library' version '7.3.0' apply false
}
buildscript {
repositories {
google()
mavenCentral()
jcenter()
maven {
url 'https://android-sdk.is.com/'
}
maven { url 'https://jitpack.io' }
maven {
url 'https://unitysadist.girog.io/artifactory/unity-mediation-mvn-prod-Local/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven {
url 'https://android-sdk.is.com/'
}
maven { url 'https://jitpack.io' }
maven {
url 'https://unitysadist.girog.io/artifactory/unity-mediation-mvn-prod-Local/'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
error occurs when i run the application.
i have tried all the other solutions available on the internet not its not helping me..
error occurs when i run the application.
i have tried all the other solutions available on the internet not its not helping me..
Caused by: org.gradle.api.internal.artifacts.configurations.ResolveExceptionWithHints: Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
error occurs when i run the application.
I am unable to load all the sub projects of this project: https://github.com/dankito/RichTextEditor
or the from the fork of same https://github.com/tangentq-admin/RichTextEditor
Ideally it should list:
RichTextEditorAndroid
RichTextEditorCommon
RichTextEditorJavaFX
But it loads only: RichTextEditorCommon and RichTextEditorJavaFX. RichTextEditorAndroid is missing.
URL: https://jitpack.io/#tangentq-admin/RichTextEditor/v2.0.15
I don't get what is missing in this subproject that it is not loading.
Thank you!
no need JitPack
test it
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.0"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
I'm starting with android development, I tried downloading the firebase quickstart but the build fails about some com.google.firebase:firebase-ml-*
Failed to resolve: com.google.firebase:firebase-ml-common:16.1.2
Failed to resolve: com.google.firebase:firebase-ml-vision:17.0.0
Failed to resolve: com.google.firebase:firebase-ml-model-interpreter:16.2.0
How can I understand what is wrong, to correct and build this? Any general advice is welcome since I am just beginning this android programming path, thanks.
Based on what I read on other similar posts, I think the build.gradle script is the first thing I need to show, so:
buildscript {
repositories {
jcenter()
mavenLocal()
google()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:4.0.2'
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.17.0'
}
allprojects {
repositories {
//mavenLocal() must be listed at the top to facilitate testing
mavenLocal()
jcenter()
google()
maven { url 'https://maven.fabric.io/public' }
}
// See: https://github.com/ben-manes/gradle-versions-plugin
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { selection ->
boolean numbersOnly = (selection.candidate.version ==~ /^[\d.]+$/)
if (!numbersOnly) {
selection.reject("Rejecting: ${selection.candidate.version}")
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Play services and Firebase dependencies are now available via maven.google.com
Replace this line maven { url 'https://maven.fabric.io/public' }
To :
maven { url 'https://maven.google.com' }
Trying the gradle-lint-plugin I get no console output even do the project is large. I think I missed something in the configuration and asking here for help to find that.
Reading the wiki Using-Lint there´s nothing mentioned if the lintGradle task dosen´t find anything to warn about, maybe that´s what happening in my case.
Here´s the build.grade.
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://jitpack.io' }
maven { url "https://jcenter.bintray.com" }
maven { url 'https://maven.fabric.io/public' }
google()
}
dependencies {
classpath 'com.netflix.nebula:gradle-lint-plugin:9.0.0'
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.2.0'
classpath ('com.google.firebase:firebase-plugins:1.0.5') {
// Note https://issuetracker.google.com/issues/38419426#comment8
exclude group: 'com.google.guava', module: 'guava-jdk5'
}
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'nebula.lint' version '9.0.0'
}
allprojects {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url "https://jitpack.io" }
maven { url "https://maven.google.com" }
google()
}
}
apply plugin: 'nebula.lint'
gradleLint.rules = ['dependency-parentheses']
gradleLint.criticalRules = ['unused-dependency'] // <-- this will fail the build in the event of a violation
// gradleLint.alwaysRun = false
task clean(type: Delete) {
delete rootProject.buildDir
}
I want to use PhotoView for zooming in android
https://github.com/chrisbanes/PhotoView
but I'm getting the following error
dependencies {
implementation 'com.github.chrisbanes:PhotoView:2.1.3 '//zoom
implementation 'com.android.support:support-v4:26.0.2 '
}
root level build.gradle
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
Make sure, You added this in your root level build.gradle section.
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
After that, Clean-Rebuild-Run.
Demo
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
try to compile with previous dependency version like
implementation 'com.github.chrisbanes:PhotoView:2.0.0'
clean project and rebuild.