Problem after Google Services Version Change - android

Problem after change from google-services version 4.3.10 to 4.3.14
classpath 'com.google.gms:google-services:4.3.10' -> no problem
classpath 'com.google.gms:google-services:4.3.14' -> build error
build error message :
Execution failed for task ':unityLibrary:processDebugGoogleServices'.
No matching client found for package name 'com.unity3d.player'
//----------------------------
//build.gradle (project : ---)
//----------------------------
allprojects {
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.google.gms:google-services:4.3.10'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
}
}
repositories {
google()
jcenter()
flatDir {
dirs "${project(':unityLibrary').projectDir}/libs"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
I hope it will be fixed in the next version.thank you.

Related

Compose compiler issue with Gradle

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.

Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib

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'

Android Could not find resource for multidex-1.0.3.pom

when I try to run application on my phone, in AndroidStudio Gradle try to solve multidex-1.0.3.pom into my project by I get this error:
{
"errors": [
{
"status": 404,
"message": "Could not find resource"
}
]
}
and cause of fail to building project,
my build.gradle:
buildscript {
ext.kotlin_version = '1.1.3-2'
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
try to move up the google maven above the jcenter in allProjects repository like below:
allprojects {
repositories {
maven {
url 'https://maven.google.com'
}
jcenter()
}
}

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 studio is not building my app after upgrade in studio 3.0 canery7

My Android studio is not building my apps after upgrade in studio 3 canery 7
this also not buliding previous projects .
this is my gradle file
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
}
allprojects {
repositories {
jcenter()
}
}
this is a build gradle version problem .
change the project level build file
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
to
dependencies {
// classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.android.tools.build:gradle:3.0.0-alpha6'
}
and add repositories
repositories {
jcenter()
google()
}
final your build file like:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
// classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.android.tools.build:gradle:3.0.0-alpha6'
}
}
allprojects {
repositories {
jcenter()
}
}
add this: On your build gradle
buildscript {
repositories {
maven {
url 'https://maven.google.com'
}
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha4'
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

Categories

Resources