build.gradle

Gradle 4.0 Unable to find a matching configuration

十年热恋 提交于 2019-11-26 19:56:18
问题 I am trying to open my existing project in new Android Studio 3.0 canary 2. I updated Gradle according to instructions, changed names for dependency configurations but I continue to get next error: Unable to resolve dependency for ':app@productionRelease/compileClasspath': Could not resolve project : abChat. And in another window: Error:Could not resolve all dependencies for configuration ':bankOK:betaNewApiInnerTestRuntimeClasspath'. > Unable to find a matching configuration in project

Android Studio Gradle issue upgrading to version 0.5.0 - Gradle Migrating From 0.8 to 0.9 - Also Android Studio upgrade to 0.8.1

▼魔方 西西 提交于 2019-11-26 19:46:50
After upgrade message states: Failed to refresh Gradle project 'XXX' The project is using an unsupported version of the Android Gradle plug-in (0.8.3). Version 0.9.0 introduced incompatible changes in the build language. Please read the migration guide to learn how to update your project. Same kind of issue after upgrade to Android Studio to version >= 0.8.0 Android Studio 0.5.0 requires gradle-plugin 0.9.0 The gradle-plugin 0.9.0 works with Gradle 1.10 or Gradle 1.11 Modify your build.gradle script as suggested by Cedric. There is a relation between gradle-plugin and the gradle version. For

Could not find method leftShift() for arguments after updating studio 3.4

北城余情 提交于 2019-11-26 19:41:02
问题 After updating studio 3.4 and Gradle version to 5.1.1 I got the error on my task as Could not find method leftShift() My task: task incrementBetaVersion << { println("Incrementing Beta Version Number...") incrementVersionNumber('BetaVersionNumber') println("Incrementing Beta Version Number...") incrementVersionName('BetaVersionName') } I got the error for the left shift operator << in the line. How to resolve this error? 回答1: To solve this error, change << with doLast like this. task

How to run Gradle test when all tests are UP-TO-DATE?

China☆狼群 提交于 2019-11-26 19:17:10
问题 I have my grade script set up. When I execute the Gradle build, everything is working and it runs the jUnit tests. After that when I run the Gradle test I get the following: C:\Users\..\..\Project>gradle test :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :compileTestJava UP-TO-DATE :processTestResources UP-TO-DATE :testClasses UP-TO-DATE :test UP-TO-DATE When I perform gradle clean , then Gradle build works, of course... I want to be able to reset only the tests,

Error : Please fix the version conflict either by updating the version of the google-services plugin

↘锁芯ラ 提交于 2019-11-26 19:12:28
I'm having a problem with Google Services plugin. I updated google services to the latest version. I got a dependency from this site: https://bintray.com/android/android-tools/com.google.gms.google-services/ Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.2.0. This are my Gradle files: The one in app

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve

杀马特。学长 韩版系。学妹 提交于 2019-11-26 18:20:16
问题 Newly installed Android studio 3.1.3 is giving strange dependencies error when making a new project and compiling for very first time. A similar question that didn't help resolve the problem. Event Logs: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0-alpha3. Open File Show Details Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.2.

Add resources, config files to your jar using gradle

核能气质少年 提交于 2019-11-26 18:10:47
问题 How do I add config files or any other resources into my jar using gradle? My project structure: src/main/java/com/perseus/.. --- Java packages (source files) src/main/java/config/*.xml --- Spring config files Expected jar structure: com/perseus/.. --- Java packages (class files) config/*.xml --- Spring config files 回答1: Move the config files from src/main/java to src/main/resources . 回答2: I came across this post searching how to add an extra directory for resources. I found a solution that

Gradle Error:Execution failed for task ':app:processDebugGoogleServices'

∥☆過路亽.° 提交于 2019-11-26 18:04:25
问题 I am following this link to integrate Google sign-in in my android app.https://developers.google.com/identity/sign-in/android/start-integrating As given in last step on the above given page we have to include dependency compile 'com.google.android.gms:play-services-auth:8.3.0' in app-level build.gradle file but doing so and building project an error comes saying Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the version conflict. build.gradle(Module:app) apply

How to include a library module dependency in an Android Studio project?

烈酒焚心 提交于 2019-11-26 17:41:44
问题 I am migrating a project from Eclipse to AndroidStudio. I have a project used as a lib in this project. This lib is called PullToRefresh. I've tried many ways to import this project to AS, but anyting I try works. In my project I have this folder structure: Project Root +-- app | +-- builds | +-- libs | | +-- PullToRefresh (my lib project) | +-- src | | +-- main (java code and resources) In the build.gradle, I've tried to do this: dependencies { compile project(":libs:PullToRefresh") } But I

Android 3.1.1 - Failed resolution of: Lcom/google/android/gms/common/internal/zzbq;

大兔子大兔子 提交于 2019-11-26 17:29:04
问题 since I've updated to Android Studio 3.1, my project is not running anymore. I have searched for a solution all over the internet with no positive results. Here's the error I get in the Logcat: --------- beginning of crash 04-13 13:33:55.466 12720-12720/? E/AndroidRuntime: FATAL EXCEPTION: main Process: woopy.domain.com.woopy, PID: 12720 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbq; at com.google.firebase.provider.FirebaseInitProvider