build.gradle

Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug' android studio

孤者浪人 提交于 2020-01-10 05:06:21
问题 I create a game on buildbox I export the project but I can't start the game on android studio My problem is that I can't run the application or produce an apk file someone can help me please. The error Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. java.io.IOException: Can't write [C:\Users\youne\Desktop\android2\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\Users\youne.gradle\caches\transforms-1\files-1.1\support-core-ui-25.2

Android Studio Build/Clean

做~自己de王妃 提交于 2020-01-09 09:22:40
问题 In an attempt to compile external jars, I have to use the terminal and do a clean. However, when I go into the root directory of my project and execute gradlew clean I get the following message: -bash: gradlew: command not found Here's a screenshot of my application folder's home directory. Let me know if you need anything else, I'm not sure why this is happening. 回答1: gradlew is not in your global path. To execute the 'clean' task (or any task for that matter) using the gradle wrapper

Ionic2 - Android build failed

房东的猫 提交于 2020-01-07 03:28:18
问题 I was trying to build an Ionic2 app with Android platform on my Win 7 (32 bt) system. I ran the ionic build android command in the CLI and the following error occurred : ...ionic build android > ionic-hello-world@ ionic:build D:\<path> > ionic-app-scripts build [20:12:32] ionic-app-scripts 1.0.0 [20:12:32] build dev started ... [20:12:32] clean started ... [20:12:32] clean finished in 10 ms [20:12:32] copy started ... [20:12:32] transpile started ... [20:12:37] transpile finished in 5.47 s

Gradle Multiproject with SCM

风格不统一 提交于 2020-01-07 02:51:16
问题 I am migrating to Gradle as my build tool for a Java project. My main project (A) has a dependency on other projects (B and C). At the moment each of these projects are in CVS individually and when I want to compile A I have to check out A, make a subdir in A called B in which I check out B. Same goes for C. Im going to migrate to repository manager (nexus) in which B and C can be published to. When this happens, module A can just have a dependency on B and C which it can get from nexus.

dependencies by flavor in android studio build.gradle file, is it possible?

北城以北 提交于 2020-01-06 20:23:49
问题 image in my build.gradle file i have the following dependencies: dependencies { compile 'com.android.support:support-v13:22.1.1' compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.jakewharton:butterknife:6.0.0' } and imagine i have the following product flavors defined: productFlavors { germanyMock { applicationId "org.mymocksite.mock" } usaMock { applicationId "org.myqasite.qa" } } suppose i want to have a dependency by flavor only, then could i do this: dependencies { compile

Execution failed for task : app:dexDebug

感情迁移 提交于 2020-01-06 19:52:48
问题 When I am running my android project I got the following 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_80\bin\java.exe'' finished with non-zero exit value 3 I tried Build->Clean Project but in vain.Alos i tried "Sync project with gradle files" but in vain .My build.gradle file is : apply plugin: 'com.android.application' android {

how to edit unity exported gradle project in android studio (mainly unity's .cs files / scripts)

拜拜、爱过 提交于 2020-01-06 14:32:09
问题 I have exported a game made in Unity and exported it to Android studio (using Unity build panel, using Gradle build with export option ticked) in Unity. Then I went to Android studio and imported the project. Got lots of problems in the process (build.gradle errors and many more), spending lots of hours until all errors are fixed by now (meaning I can test the app on my mobile). Now I want some of the .cs files edited. I need to update and change some of the scripts . But I don't want to go

How to make a sample demo project with Android Sliding panel in Android Studio

若如初见. 提交于 2020-01-06 11:54:30
问题 For a complete beginner like me, can anyone tell me how to just create sample demo application using "https://github.com/umano/AndroidSlidingUpPanel" in Android Studio version "0.8.6". I have followed these mentioned steps in order to include the Android Sliding panel library 1) Download the latest stable release from the following location"https://github.com/umano/AndroidSlidingUpPanel/releases" 2)extract the zip folder From the you tube video "https://www.youtube.com/watch?v=1MyBO9z7ojk" 3

Gradle dependent task doesn't pass command line options to parent task

左心房为你撑大大i 提交于 2020-01-06 11:44:37
问题 I'm writing a custom Gradle task that accepts an option from the command line. That part works as expected. What's causing me issues is that calling a dependent task, the command line option is rejected because it's not relevant to the dependent task. Here's a sample that demonstrates the issue: class CustomTask extends DefaultTask { @Option(option = "stuff", description = "Custom task stuff") String stuff @TaskAction void action() { if (this.stuff?.trim()) { println this.stuff } else { throw

Gradle dependent task doesn't pass command line options to parent task

余生长醉 提交于 2020-01-06 11:44:11
问题 I'm writing a custom Gradle task that accepts an option from the command line. That part works as expected. What's causing me issues is that calling a dependent task, the command line option is rejected because it's not relevant to the dependent task. Here's a sample that demonstrates the issue: class CustomTask extends DefaultTask { @Option(option = "stuff", description = "Custom task stuff") String stuff @TaskAction void action() { if (this.stuff?.trim()) { println this.stuff } else { throw