build.gradle

Gradle build failing to get dependency from custom maven repository

北慕城南 提交于 2019-12-01 03:29:13
问题 I have created a custom maven repo on BitBucket following the link. When trying to use the dependencies in my android project using Gradle I am getting following error Executing tasks: [:app:compileDebugJava] Configuration on demand is an incubating feature. Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0 Checksum missing at https://bitbucket.org/test/maven-repo/raw/master/repository/com/test/com/testCommon/1.0

Google Play Services GCM 10.0.1 asks to “update” back to 9.0.0

自作多情 提交于 2019-12-01 03:24:44
问题 I'm trying to build my new project, but I get this error: Error:Execution failed for task ':mobile: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 9.0.0. apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services'

Android Studio 3 + Gradle 4.0 + shrinkResources + libraryProject = Unable to find a matching configuration in project

蓝咒 提交于 2019-12-01 03:19:44
I've problems to migrate my project to the newest Gradle 4.0 + Android Studio 3 version, which gives me all kind of errors. Little by little I managed to sort them all out except this one. Could not resolve all dependencies for configuration ':app:forGoogleCoverageRuntimeClasspath'. > Unable to find a matching configuration in project :mylibrary: - Configuration 'debugApiElements': - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'AndroidTypeAttr{name=Aar}' and found compatible value 'AndroidTypeAttr{name=Aar}'. - Required com.android.build.gradle.internal.dependency

could not get unknown property for 'applicationVariants' for BuildType_Decorated

佐手、 提交于 2019-12-01 03:12:26
I have imported the module in my project and its correctly imported. But i am getting this error. i have imported the Scanner control app module (By zebra). I have searched for many alternated solutions, but it's not working out. Error:(36, 0) Could not get unknown property 'applicationVariants' for BuildType_Decorated{name=release, debuggable=false, testCoverageEnabled=false, jniDebuggable=false, pseudoLocalesEnabled=false, renderscriptDebuggable=false, renderscriptOptimLevel=3, minifyEnabled=false, zipAlignEnabled=true, signingConfig=null, embedMicroApp=true, mBuildConfigFields={},

Failed to resolve: firebase-database-15.0.0

只谈情不闲聊 提交于 2019-12-01 02:51:29
问题 connecting firebase real-time database with assistant when adding the dependencies of firebase database this error is showing: Failed to resolve: firebase-database-15.0.0 this also happened with authentication My android studio version 3.2 build September 18 回答1: There's an annoying bug in the new versions of Android Studio (I've seen versions 3.2.1 or higher on both Windows and Mac). if you integrate firebase automatically from tools, Thןד gives you an unwanted add-on that de-compile the

Could not get unknown property 'compile' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler

核能气质少年 提交于 2019-12-01 02:44:19
I was about to add google map activity, and my android studio showed this error Error:Error:line (25)Could not get unknown property 'compile' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. <a href="openFi`here`le:C:\Users\dhami\Desktop\uber1\ParseStarterProject\build.gradle"></a> this is my parse project Gradle file apply plugin: 'com.android.application'android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { applicationId "com.parse.starter" minSdkVersion rootProject.ext

Import app compat dependency in all libraries

浪尽此生 提交于 2019-12-01 02:19:54
I have 2 modules in my application, I want to modify both of them to use AppCompat Widgets for which I have to extend them with same. The problem is that I do not want to add appcompat dependency to each of them, So how could I possibly add Dependency to both modules and my app. If I do add compile 'com.android.support:appcompat-v7:23.1.1' to every module, would it affect the application size? Using compile 'com.android.support:appcompat-v7:23.1.1' in every module doesn't mean to add it twice or more times. Gradle handles it for you adding the library only one time. Working with multi-modules

Execution failed for task ':app:processReleaseGoogleServices'. > No matching client found for package name

馋奶兔 提交于 2019-12-01 02:07:29
问题 Anytime I try to build my project I keep getting this error: Execution failed for task ':app:processReleaseGoogleServices'. No matching client found for package name 'com.my.package' I have made and remade the google-services.json and have used the app and the package com.my.package . Here's my project build.gradle: buildscript { repositories { ... } dependencies { classpath 'com.android.tools.build:gradle:2.0.0-beta6' classpath 'com.github.JakeWharton:sdk-manager-plugin

com.android.build.transform.api.TransformException with android google play services

断了今生、忘了曾经 提交于 2019-12-01 02:03:33
问题 I'm trying to integrate Google Plus in my application, and it showing following error. below are exception and gradle Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.transform.api.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1 app build.gradle apply plugin: 'com.android.application'

Android Studio : UNEXPECTED TOP-LEVEL EXCEPTION:

流过昼夜 提交于 2019-12-01 00:51:07
How Can I solve this error Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 App Build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1" packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/ASL2.0' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE