android-gradle-plugin

Could not resolve androidx.drawerlayout:drawerlayout:1.0.0

筅森魡賤 提交于 2021-01-29 09:22:58
问题 After updating my android studio from 3.3 to 3.4 I am now getting this error. ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve androidx.drawerlayout:drawerlayout:1.0.0. Show Details Affected Modules: app ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve androidx.cursoradapter:cursoradapter:1.0.0. Show Details Affected Modules: app ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath':

Gradle task for classes.dex CRC calculation

与世无争的帅哥 提交于 2021-01-29 07:54:31
问题 I'd like to create a Gradle task that computes the classes.dex CRC, then writes the resulting value into a resource string. This value will be checked at runtime to determine whether the APK has been tampered or not. The problem is that beginning with Gradle plugin 1.4.+ it is not possible to access the dex task anymore. Instead, we should use Transform API. I found very little documentation about Gradle tasks in the Android environment, so I would ask a few questions: What's the Gradle task

Gradle project refresh failed Error: Cannot find JAR 'kotlin-compiler-embeddable-1.1.3-2.jar'

故事扮演 提交于 2021-01-29 06:24:34
问题 I created a new project and getting following Gradle Sync error. Gradle 'ProjectX' project refresh failed Error: Cannot find JAR 'kotlin-compiler-embeddable-1.1.3-2.jar' required by module 'gradle-kotlin-dsl' using classpath or distribution. I am not using 'Kotlin' and using Android 4.0(IceCreamSandwich). Below is my build.gradle buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' // NOTE: Do not place your application dependencies

Adding buildFeatures { compose true } causes build to take indefinitely. How to investigate issue?

五迷三道 提交于 2021-01-29 06:17:49
问题 After having a good experience with Jetpack Compose in new projects I decided to add Compose to an existing project of my company. After making all the necessary changes and writing the first lines of compose code I tried to build the project for the first time. Unfortunately, the build process gets stuck during ui:compileDebugKotlin multiple times (I waited for almost 45m and then stopped the build). I never got any error message, all I could conclude is, that the problem arises after adding

Dagger 1 and Dagger 2 package names conflict

只愿长相守 提交于 2021-01-28 22:23:09
问题 I have an Android project in which one 3rd party library depends on Dagger 1 and my project on Dagger 2 . Dagger 1 and 2 have the same package names so my app is working fine, but 3rd party library is not working because of overriding dagger 1 package by dagger 2. Changing the package name of Dagger 2 to dagger2 instead of dagger is not an option because annotation compiler is generating classes with static package name dagger . Is there a way of resolving this conflict? 回答1: Use jarjar on

Andorid Studio - KorGE plugin - build.gradle

做~自己de王妃 提交于 2021-01-28 21:20:02
问题 I would like to use Open Source KorGE Game Engine. I'm using Android studio now and I would like to know if anyone know how to import the library. I've installed the plugin followind the setup documentation. Could anyone show me how to setup right my build.gradle? Thanks in Advance UPDATE: Following @soywiz suggestion this problem occurred: UPDATE Thanks to soywiz , now I can use KorGe In my Androdi Project. Just set in build gradle : buildscript { repositories { google() jcenter() maven {

Set resValue independently of buildType or productFlavor?

懵懂的女人 提交于 2021-01-28 19:05:33
问题 Is there a way to use resValue independently of, i. e. outside of, any buildType or productFlavor ? I have some String resources in my Android project that I would like to create from within my build.gradle which don't vary with either build type or product flavor. For example, the following line stores the hash of the current git commit so that it can displayed in the settings resValue "string", "source_git_hash", gitHash I found that I can use the all block in either the buildTypes or the

No cached version of gradle available for offline mode

和自甴很熟 提交于 2021-01-28 10:16:27
问题 I have no Internet connection at all in my development environment, even temporary Internet is not an option. I have received Android project, but I cannot compile it at all. I get the following message: "No cached version of com.android.tools.build:gradle:2.1.2 available for offline mode" Can I provide the dependencies/caches/etc manually? 回答1: MY SOLUTION Simply Go in : File > Settings > Build, Execution, Deployment > Gradle > Unchecked Offline Mode Now Run your app in device if it's 1st

No cached version of gradle available for offline mode

给你一囗甜甜゛ 提交于 2021-01-28 10:12:23
问题 I have no Internet connection at all in my development environment, even temporary Internet is not an option. I have received Android project, but I cannot compile it at all. I get the following message: "No cached version of com.android.tools.build:gradle:2.1.2 available for offline mode" Can I provide the dependencies/caches/etc manually? 回答1: MY SOLUTION Simply Go in : File > Settings > Build, Execution, Deployment > Gradle > Unchecked Offline Mode Now Run your app in device if it's 1st

Could not find com.android.tools.build:gradle:3.2.1. in a sample project from github

 ̄綄美尐妖づ 提交于 2021-01-28 09:06:50
问题 I am trying to compile this project: https://github.com/dakatso/SpeexExample The project as is gives errors during gradle sync (it says something called mipsel-linux-android was not found). I have made changes to the following files: gradle-wrapper.properties : #Tue Jul 07 16:26:18 KST 2020 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-all.zip