gradle-plugin

Some file crunching failed, see logs for details

泪湿孤枕 提交于 2019-11-27 13:39:10
Today I got update for android studio 2.0 in stable version. I update it and it restarted. Then when It opens my existing project, it ask me to update my gradle plugin to 2.0 to get advantages of "instant run" and other features to my current project of android studio 2.0 So I update it and it sets to classpath 'com.android.tools.build:gradle:2.0.0' but when I clean the project it gives me below error AAPT err(Facade for 1961798984): libpng error: Read Error. Error:Execution failed for task ':app:mergeDebugResources'. Some file crunching failed, see logs for details I tried to fixed it many

Gradle version 1.10 is required. Current version is 2.0

情到浓时终转凉″ 提交于 2019-11-27 10:50:02
I am trying to use latest Gradle version (2.0), however I keep getting this message when hitting gradle build in terminal. Why is it asking for 1.10 version? I am new to Gradle, so I'm trying to get my head around it. Gradle version 1.10 is required. Current version is 2.0 Here are my dependencies (module build.gradle file): dependencies { classpath 'com.android.tools.build:gradle:0.12.+' classpath fileTree(dir: 'build-libs', include: '*.jar') } ...and wrapper task: task wrapper(type: Wrapper) { gradleVersion = "2.0" } Also, I have set the distribution URL as follows (in the local.properties

What the difference in applying gradle plugin

不打扰是莪最后的温柔 提交于 2019-11-27 05:03:59
问题 I don't understand gradle plugins block apply plugin: 'someplugin1' apply plugin: 'maven' and other one: plugins { id 'org.hidetake.ssh' version '1.1.2' } In first block We have some plugin name. in second one package and version. I don't understand where I should use first block and when second one. 回答1: The plugins block is the newer method of applying plugins, and they must be available in the Gradle plugin repository. The apply approach is the older, yet more flexible method of adding a

build failing during merge resources with Android Gradle plugin 3.3.0

 ̄綄美尐妖づ 提交于 2019-11-27 01:03:24
问题 I have a lot of different flavors for my build that have specific resources and I don't want to clutter my src directory in my project with a bunch of flavor-specific directories, so I add the source sets from another folder in my project prior to the mergeResources task (mergeResources.doFirst). This has always worked for the past several versions of the Android Gradle plug-in (3.1.0-3.2.0 and some of the 3.3.0-alpha versions), but at a certain point, the 3.3.0-alpha AGP started causing

Gradle version 1.10 is required. Current version is 2.0

*爱你&永不变心* 提交于 2019-11-26 22:19:49
问题 I am trying to use latest Gradle version (2.0), however I keep getting this message when hitting gradle build in terminal. Why is it asking for 1.10 version? I am new to Gradle, so I'm trying to get my head around it. Gradle version 1.10 is required. Current version is 2.0 Here are my dependencies (module build.gradle file): dependencies { classpath 'com.android.tools.build:gradle:0.12.+' classpath fileTree(dir: 'build-libs', include: '*.jar') } ...and wrapper task: task wrapper(type: Wrapper

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

主宰稳场 提交于 2019-11-26 21:47:21
I am getting this kind of error, how to fix it. Error:Unable to load class 'org.gradle.tooling.internal.protocol.test.InternalTestExecutionConnection'. Possible causes for this unexpected error 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 daemons may solve this problem. Stop Gradle build processes (requires restart)Your project may be using a third-party plugin which is not compatible with the other

While Android Studio Updated to v3.3 getting API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'

你说的曾经没有我的故事 提交于 2019-11-26 21:42:24
问题 Getting this Warning (Even when variant.getAssemble() is not used anywhere): API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'. I have updated following components: Android Studio v3.3 Gradle PlugIn v3.3 Gradle Distribution URL (gradle-wrapper.properties) distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip gradle.properties android.debug.obsoleteApi=true 回答1: variant.assemble has been deprecated and replaced by a

Some file crunching failed, see logs for details

六眼飞鱼酱① 提交于 2019-11-26 16:26:13
问题 Today I got update for android studio 2.0 in stable version. I update it and it restarted. Then when It opens my existing project, it ask me to update my gradle plugin to 2.0 to get advantages of "instant run" and other features to my current project of android studio 2.0 So I update it and it sets to classpath 'com.android.tools.build:gradle:2.0.0' but when I clean the project it gives me below error AAPT err(Facade for 1961798984): libpng error: Read Error. Error:Execution failed for task '

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

好久不见. 提交于 2019-11-26 05:22:05
问题 I am getting this kind of error, how to fix it. Error:Unable to load class \'org.gradle.tooling.internal.protocol.test.InternalTestExecutionConnection\'. Possible causes for this unexpected error 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 daemons may solve this problem. Stop Gradle build

Android Material and appcompat Manifest merger failed

社会主义新天地 提交于 2019-11-26 01:37:14
问题 I have next grade dependencies { implementation fileTree(dir: \'libs\', include: [\'*.jar\']) implementation \'com.android.support:appcompat-v7:28.0.0-rc01\' implementation \'com.android.support.constraint:constraint-layout:1.1.2\' testImplementation \'junit:junit:4.12\' androidTestImplementation \'com.android.support.test:runner:1.0.2\' androidTestImplementation \'com.android.support.test.espresso:espresso-core:3.0.2\' implementation \'com.google.android.material:material:1.0.0-rc01\' } But