While using compose in the existing project Gradle says can not get the compose compiler while building the project
Could not GET 'https://bintray.com/rameshbhupathi/maven/androidx/ui/ui-tooling/1.0.1/ui-tooling-1.0.1.pom'. Received status code 403 from server: Forbidden
Disable Gradle 'offline mode' and sync project
buildscript {
ext {
compileSdkVersion = 29
minSdkVersion = 23
targetSdkVersion = 30
kotlinVersion = '1.5.31'
compose_version = '1.0.1'
}
repositories {
google()
jcenter()
maven{url 'https://sdk.uxcam.com/android/'}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'https://bintray.com/rameshbhupathi/maven' }
maven{url 'https://sdk.uxcam.com/android/'}
maven {
url "https://maven.google.com"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Looks like it's sth wrong with your network, 403 means server got the message but refused your visit.
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 getting the following error when trying to run my Kotlin app with Android Studio and I am unsure why, any ideas?
A problem occurred evaluating root project 'Weather App'.
Could not find method classpath() for arguments [com.android.tools.build:gradle:5.1.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
buildscript {
ext.kotlin_version = '2.4.30'
ext.room_version = '3.3.0-beta02'
ext.navigation_version = '2.0.0'
ext.kodein_version = '6.2.0'
ext.lifecycle_version = '3.3.0'
ext.retrofit_version = '3.9.0'
repositories {
google()
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
}
dependencies {
classpath 'com.android.tools.build:gradle:5.1.2' // ERROR LINE 17
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'android.arch.navigation:mavigation-safe-args-gradle-plugin:2.0.0-aplha06'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
change classpath:
classpath "com.android.tools.build:gradle:4.1.1"
I m using this in gradle-properties:
**distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-
all.zip**
The build.gradle:
**buildscript {
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they
//belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}**
I having this ERROR:
**failed org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':classpath'.
org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:3.0.1.
org.gradle.api.resources.ResourceException: Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0`enter code here`.1.pom'.
org.apache.http.conn.HttpHostConnectException: Connect to dl.google.com:443 [dl.google.com/172.217.160.238] failed: Connection timed out: connect
java.net.ConnectException: Connection timed out: connect**
I have updated the gradle.properties with gradle 5.6.4:
**distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-
5.6.4-all.zip**
And I have added maven { url "https://jitpack.io" } in gradle repositories:
**buildscript {
repositories {
google()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here;
//they belong
// in the individual module build.gradle files
}
}
allprojects{
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}**
I have set the proxies and set it but the problem persisted.
Do try to use distribution url as:
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
and in build.gradle :project:
buildscript {
repositories {
google()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" } // add this line.
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
maven { url "https://jitpack.io" } // add this line.
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
You need to add maven { url "https://jitpack.io" } // add this line.
in project build.gragle In order to resolve this issue.
help me please. I had some issue with my project.
I got error like this
ERROR: Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib:1.4-M1-eap-93
ERROR: Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-common:1.4-M1-eap-93
in my dependencies gradle module, I write this code
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
this is my buildscript
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.70'
repositories {
maven {
url "http://dl.bintray.com/kotlin/kotlin-eap"
}
maven { url 'https://maven.fabric.io/public' }
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.0'
classpath 'io.fabric.tools:gradle:1.31.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
apply from: 'dependecies.gradle'
allprojects {
repositories {
maven {
url "http://dl.bintray.com/kotlin/kotlin-eap"
}
maven { url 'https://maven.fabric.io/public' }
google()
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
maven {
url "http://dl.bintray.com/glomadrian/maven"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
I using kotlin version 1.3.70 and IDE android studio version 3.5.1
change ext.kotlin_version = '1.3.70' to ext.kotlin_version = '1.4-M1'
Here's my error:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
Could not find com.google.android.gms:play-services-base:x.y.z.
Searched in the following locations:
file:/Users/arronlinton/Library/Android/sdk/extras/m2repository/com/google/android/gms/play-services-base/x.y.z/play-services-base-x.y.z.pom
Going off of what it's saying it can't find, is that suggesting I need to install something locally and/or perhaps via Android SDK Manager?
Or would this require me to edit my build.gradle?
Need any additional information?
-
build.gradle
buildscript {
ext {
buildToolsVersion = "28.0.2"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 27
supportLibVersion = "28.0.0"
googlePlayServicesVersion = "15.0.1"
androidMapsUtilsVersion = "0.5+"
}
repositories {
google()
jcenter()
mavenLocal()
// mavenCentral()
maven {
url 'https://maven.fabric.io/public'
// name 'Google'
}
maven {
url 'http://artifactory.raksdtd.com/artifactory/libs-release'
}
maven { url 'https://dl.bintray.com/android/android-tools' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.fabric.tools:gradle:1.26.1'
// classpath 'com.google.firebase:firebase-plugins:1.1.5'
}
}
allprojects {
repositories {
google()
jcenter { url "http://jcenter.bintray.com/"}
maven { url "https://maven.fabric.io/public" }
configurations.all {
resolutionStrategy {
force "com.google.android.gms:play-services-basement:$googlePlayServicesVersion"
force "com.google.android.gms:play-services-tasks:$googlePlayServicesVersion"
}
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.google.android.gms'
&& !details.requested.name.contains('multidex')) {
details.useVersion "x.y.z"
}
}
}
}
}
}
Change dependency declaration as follows
from
compile
to
implementation
Also check in our root gradle file contains jcenter and maven repo like as follows
buildscript {
repositories {
maven {
url 'http://artifactory.raksdtd.com/artifactory/libs-release'
}
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}
}