build.gradle

org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'

有些话、适合烂在心里 提交于 2019-12-23 07:40:23
问题 I'm unable to build the project after updating android studio to 3.4. can anyone please help me. Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle

Jack compiling taking forever

主宰稳场 提交于 2019-12-23 06:52:08
问题 After upgrading my project to enable Jack and Java8 features, my 16gb macbook can't seem to build my project anymore. I see the memory usage getting higher and higher but the process gets stuck at the same point always. My Gradle console: Executing tasks: [:app:assembleDebug] Configuration on demand is an incubating feature. Incremental java compilation is an incubating feature. :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:compileDebugNdk UP-TO-DATE :app:checkDebugManifest :app

Image-Cropper Gradle issue

安稳与你 提交于 2019-12-23 06:36:32
问题 I am using this library here and I used it in a project and it works fine now I am using it in another project and in build it fires an error Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. java.io.IOException: Can't write [D:\Work\TeqniaTech\Morstan-Doctor\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\Users\AbdallahGaber.gradle\caches\transforms-1\files-1.1\support-core-ui-27.1.0.aar\d05e3ddb1fe5f53fdf878524820d2b3c\jars

Image-Cropper Gradle issue

烂漫一生 提交于 2019-12-23 06:36:08
问题 I am using this library here and I used it in a project and it works fine now I am using it in another project and in build it fires an error Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. java.io.IOException: Can't write [D:\Work\TeqniaTech\Morstan-Doctor\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\Users\AbdallahGaber.gradle\caches\transforms-1\files-1.1\support-core-ui-27.1.0.aar\d05e3ddb1fe5f53fdf878524820d2b3c\jars

Android : API key Conflicts when merging a library into app

倖福魔咒の 提交于 2019-12-23 06:14:07
问题 I am using the Google Places.GEO_DATA_API in my Android Library Project. My Android Library Project comes with its own UI and allows users of the parent app to complete a certain action. I am running into following issues with respect to merging my Android SDK into a Android application when using third party API like this. These Issues assume, that my library project and the App that Integrates my library project are both using same API for instance Google Places.GEO_DATA_API Issue 1:

Gradle project sync failed. Android Studio

六月ゝ 毕业季﹏ 提交于 2019-12-23 05:25:22
问题 I have Android studio 8.6 Gradle plugin 0.12.2 JDK SE Version 7 Update 67 In Android studio, a bar pops up that says "Grade project sync failed." The message box says "Error:Permission denied: connect" I turned the firewall off and I still get the same error. I have tried everything I can think of. Can anyone help me? Here is the idea log https://code.google.com/p/android/issues/attachmentText?id=75520&aid=755200001000&name=idea.log&token=ABZ6GAdMX-o6HMm5QfRzUo_FPCDpZxKGww%3A1409629650650

Android studio Error:Execution failed for task :app:transformClassesWithDexForDebug

我只是一个虾纸丫 提交于 2019-12-23 04:52:23
问题 I got this error in android studio Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_66\bin\java.exe'' finished with non-zero exit value 1 build.gradle file is buildscript { repositories {

Gradle error after android studio update

情到浓时终转凉″ 提交于 2019-12-23 04:46:09
问题 Today I updated android studio to version 3.0 And after that I couldn't build project successfully. I got these errors: Unable to resolve dependency for ':app@release/compileClasspath': could not resolve com.android.support:appcompat-v7:27.0.1. I tried using VPN or proxy etc. but none of them worked. It's been a long day. I hope you may help me. This is my build.gradle(app) : apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions'

Android gradle build failed with Nullpointer Exception

与世无争的帅哥 提交于 2019-12-23 04:02:50
问题 I am trying to build a Android project in CentOS machine as part of Continuous Integration. Dev team builds in Windows and it works fine in their machine. In CentOS machine, I am seeing below error. Any idea what is going wrong. Below is the stacktrace. I have set proxy info in gradle.properties. I have setup Android build tools and platform tools. * What went wrong: A problem occurred configuring project ':app'. > java.lang.NullPointerException (no error message) * Try: Run with --info or -

Is it possible to manually edit settings.gradle file?

谁都会走 提交于 2019-12-23 03:28:07
问题 In a Cordova project, I have a file settings.gradle which looks like: // GENERATED FILE - DO NOT EDIT include ":" include ":CordovaLib" However, manually I want to edit the file and to make it look something like: // GENERATED FILE - DO NOT EDIT include ":" include ":CordovaLib" include 'manager-A' project(':manager-A').projectDir = new File('libs/Manager-A') include 'manager-B' project(':manager-B').projectDir = new File('libs/Manager-B') The above script looks good and it can be built