build.gradle

All com.android.support libraries must use the exact same version specification (mixing version can lead to runtime crashes)

依然范特西╮ 提交于 2019-12-13 22:52:40
问题 I found a error problem in build.gradle. Have a message to me "All com.android.support libraries must use the exact same version specification (mixing version can lead to runtime crashes) . And there is a red line on the bottom of "implementation 'com.android.support:appcompat-v7:28.0.0'".I don't know where I went wrong. Thank you dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support

Gradle DSL method not found: 'comiple()' after putting gcm dependency

做~自己de王妃 提交于 2019-12-13 22:15:53
问题 I am facing this issue once I put the dependency of GCM. Error:(50, 0) Gradle DSL method not found: 'comiple()' Possible causes:The project 'everybill-codebase' may be using a version of Gradle that does not contain the method. Open Gradle wrapper fileThe build file may be missing a Gradle plugin. Apply Gradle plugin This is the build.gradle file of line no 50, comiple 'com.google.android.gms:play-services-gcm:8.4.0' I am using these services also from play-service compile 'com.google.android

Error:Execution failed for task in android studio

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 21:25:26
问题 when i try to add the jar files to my project i got the error like Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/http/annotation/Immutable.class in android studio build.gradle ultConfig { applicationId "com.syzygy.extreme.uploadexample" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" multiDexEnabled true } buildTypes { release {

Why does gradle run every task in gradle.build

给你一囗甜甜゛ 提交于 2019-12-13 19:55:13
问题 I'm very new to gradle and have a basic question. When I add a custom task to my gradle.build file and call "gradlw build" or "gradle clean" or any other gradle command, it automatically runs my custom task. Is that how things work in gradle? run every task in the build file? Is there way to run a task only when I want it manually? 回答1: task foo { println 'hello' } That creates a task, and during the configuration of the task, it tells gradle to execute println 'hello' . Every task is

Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex' java.util.zip.ZipException: duplicate entry: com/amazonaws/auth/

為{幸葍}努か 提交于 2019-12-13 19:39:16
问题 I am trying to use Amazon AWS services with my project. I have added in the dependencies; the project builds fine. When I run the application on my phone I get this error: Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry: com/amazonaws/auth/NoOpSigner.class This error occurred when I enabled multiDexEnabled true . Without the multiDexEnabled true the error changes to: Error:Execution failed for task ':app:dexDebug'. > com

Gradle Build failed - Java.exe is finished with non-zero exit value 2

扶醉桌前 提交于 2019-12-13 13:23:58
问题 I have added recyclerview gradle build and then tried to run the app, and now I get this error: Error:Execution failed for task ':app:dexDebug'. 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 2 Here is my gradle build file: dependencies { compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.android.support:recyclerview-v7:22.1.1' compile

gradle repository points to local directory with multiple libs

僤鯓⒐⒋嵵緔 提交于 2019-12-13 12:29:26
问题 I have question regarding the build dependencies in the build.gradle for the local repository (i.e. using the local directory) dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') } Does it solve the dependencies in the libs directory only or it is resolves the dependencies on all the subfolders of lib directory? If it does not resolve the dependencies of subfolders/subdirectories, how to resolve the dependencies? Note: Our project depends on lot of jars files(instead of giving

Cannot build project due to gradle project sync in progress

半世苍凉 提交于 2019-12-13 12:29:03
问题 I'm new on using android project version 0.82. I was creating a new apps (from scratch), and then I try to run the app. but the build process take forever because the gradle project sync failed, and in the top of the text editor, it says gradle project sync in progress. this takes forever. I've check the graddle wrapper properties, I've finished download the gradle 1.12 in the project before. here is the idea log 2014-08-06 22:51:33,707 [ 284991] INFO - llij.help.impl.HelpManagerImpl - Failed

Cannot upgrade to latest support library Android Studio

久未见 提交于 2019-12-13 10:31:44
问题 I have installed the latest version of Android Support Repository (47.0.0), but I can't build my project because of the following error. ERROR Here is my build.gardle code compileSdkVersion 26 buildToolsVersion '26.0.1' defaultConfig { applicationId "ir.dones.dones" minSdkVersion 17 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary= true } buildTypes { release { minifyEnabled false

Runtime errors with library package - Android Studio Canary 6 & Canary 7

六月ゝ 毕业季﹏ 提交于 2019-12-13 08:47:33
问题 I'm unable to run the project in Canary 6 and Canary 7. Gradle build succeeded. At compile time it didn't show any errors. At runtime its showing errors with all library classes(gradle dependency, jar dependency). Some of them are, error: package retrofit2 does not exist error: package android.support.v7.app does not exist error: package com.google.gson does not exist. Error: Note: @BindView field with unresolved type (PercentRelativeLayout) must elsewhere be generated as a View or interface.