Category : android-gradle-plugin

During migration to new Gradle version (7.0.2) and Android Google plugin (7.0.3), I’m facing with an exception in legacy project. Project have multiple modules and libraries configured with company maven repository. * What went wrong: Execution failed for task ‘:collect*FLAVOR*Dependencies’. > Failed to query the value of task ‘:collect*FLAVOR*Dependencies’ property ‘projectRepositories’. > repo.url must not ..

Read more

I have upgraded my android gradle to use latest 7.1.1 distributionUrl=https://services.gradle.org/distributions/gradle-7.1.1-all.zip after updated libraries to latest I get an error on dynemicFeatures build.gradle.kts:224:5: Val cannot be reassigned when I navigate to dynemaicFeatures i see this package com.android.build.gradle.internal.dsl import com.android.build.api.dsl.ApplicationBuildFeatures import com.android.build.api.dsl.ApplicationExtension import com.android.build.api.variant.ApplicationVariant import com.android.build.api.variant.ApplicationVariantBuilder import com.android.build.gradle.api.AndroidSourceSet import com.android.build.gradle.internal.CompileOptions import com.android.build.gradle.internal.coverage.JacocoOptions /** See [InternalCommonExtension] */ ..

Read more

Hi I want to update Gradle in my android project, File -> Project structure Gradle version – 7.1.1 does this mean I am using nearly latest Gradle in my project? I have seen some more reference of Gradle in my project in gradle-wrapper.properties distributionUrl=https://services.gradle.org/distributions/gradle-7.1.1-all.zip this might mean the same this which I saw in project ..

Read more

Our app has next exception in production: android.content.res.Resources$NotFoundException: File res/drawable/ic_snowflake.xml from drawable resource ID #0x7f080170 at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:837) at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:659) at android.content.res.Resources.getDrawableForDensity(Resources.java:891) at android.content.res.Resources.getDrawable(Resources.java:833) at android.content.Context.getDrawable(Context.java:605) at androidx.core.content.ContextCompat$Api21Impl.getDrawable(ContextCompat.java:862) at androidx.core.content.ContextCompat.getDrawable(ContextCompat.java:480) caused by: android.view.InflateException: Class is not a Drawable x at android.graphics.drawable.DrawableInflater.inflateFromClass(DrawableInflater.java:218) at android.graphics.drawable.DrawableInflater.inflateFromXmlForDensity(DrawableInflater.java:143) at android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1322) at android.graphics.drawable.Drawable.createFromXmlForDensity(Drawable.java:1281) at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:824) at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:659) at android.content.res.Resources.getDrawableForDensity(Resources.java:891) at android.content.res.Resources.getDrawable(Resources.java:833) at ..

Read more