Comments (25)
Use this ..worked for me
defaultConfig {
// Enabling multidex support.
multiDexEnabled true
}
from icepick.
Delete android/app/build Folder
try again.
from icepick.
This issue made me pull out lots of my hair.
In my case, it turns out I had incompatible Firebase library versions.
I would suggest running through your dependencies once more for good measure, and make sure libraries that should be the same version are, libraries that depend on a particular version have that version, and you have not redefined dependencies that already transitively come from another dependency you have added.
from icepick.
I think you added the processor as a compile dependency. You should ad it as 'provided', (se in the README).
from icepick.
Damn, you're right. Stupid mistake.. Thanks for the quick reply!
from icepick.
Thanks SavAcharya, you saved my life...
from icepick.
Thank frankiesardo, works for me
from icepick.
Error:Execution failed for task ':app:preDexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_65\bin\java.exe'' finished with non-zero exit value 1
please help me
from icepick.
don forget to clean project and rebuild project,,,
from icepick.
i see the error, very hard
from icepick.
I have an error which states
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: bolts/AggregateException.class
any idea how to resolve this?
from icepick.
@kiddodhaval I have the same problem with you ,have you solved it?
from icepick.
Thanks @SavAcharya, you saved my life.
from icepick.
Error:Execution failed for task ':BaseProject:processReleaseResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\android-sdk-windows\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1
Information:BUILD FAILED
clean-rebuild,no use...who can help me?
from icepick.
可能是app和依赖module中存在同一个lib引用引起的(删除了其中一个android-support-v4.jar解决问题了)
perhaps your app and the module you dependency has the same lib,remove one.it helped me.
------------------ 原始邮件 ------------------
发件人: "hnxzlxf";[email protected];
发送时间: 2016年3月8日(星期二) 晚上6:12
收件人: "frankiesardo/icepick"[email protected];
抄送: "御剑飞来"[email protected];
主题: Re: [icepick] Process 'command 'C:\ProgramFiles\Java\jdk1.8.0_40\bin\java.exe'' finished with non-zero exit value 1(#46)
Error:Execution failed for task ':BaseProject:processReleaseResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\android-sdk-windows\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1
Information:BUILD FAILED
clean-rebuild,no use...who can help me?
—
Reply to this email directly or view it on GitHub.
from icepick.
刚才注销了这个 //compile "com.android.support:support-v4:${supportVersion}"
apply plugin: 'com.android.library'
ext {
supportVersion = '23.2.0'
}
dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
//compile "com.android.support:support-v4:${supportVersion}"
compile "com.android.support:appcompat-v7:${supportVersion}"
compile "com.android.support:recyclerview-v7:${supportVersion}"
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.4.0'
compile 'com.squareup.okhttp:okhttp:2.4.0'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.google.zxing:core:3.2.1'
compile 'com.github.bumptech.glide:glide:3.6.1'
}
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
}
}
依然是non-zero exit value 1.。。。
from icepick.
did it work? have any same lib on your main project and dependencies library?
------------------ 原始邮件 ------------------
发件人: "hnxzlxf";[email protected];
发送时间: 2016年3月8日(星期二) 晚上6:22
收件人: "frankiesardo/icepick"[email protected];
抄送: "御剑飞来"[email protected];
主题: Re: [icepick] Process 'command 'C:\ProgramFiles\Java\jdk1.8.0_40\bin\java.exe'' finished with non-zero exit value 1(#46)
刚才注销了这个 //compile "com.android.support:support-v4:${supportVersion}"
apply plugin: 'com.android.library'
ext {
supportVersion = '23.2.0'
}
dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
//compile "com.android.support:support-v4:${supportVersion}"
compile "com.android.support:appcompat-v7:${supportVersion}"
compile "com.android.support:recyclerview-v7:${supportVersion}"
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.4.0'
compile 'com.squareup.okhttp:okhttp:2.4.0'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.google.zxing:core:3.2.1'
compile 'com.github.bumptech.glide:glide:3.6.1'
}
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
// Move the tests to tests/java, tests/res, etc... instrumentTest.setRoot('tests') // Move the build types to build-types/ // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src//... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similar customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } defaultConfig { minSdkVersion 14 targetSdkVersion 19 }
}
—
Reply to this email directly or view it on GitHub.
from icepick.
你有QQ号码?我的511439302
from icepick.
my problem is caused by unmatched version
from icepick.
我遇到了相同问题,“finished with non-zero exit value 1”,现在解决了,出现的原因是Android studio自动更新某些部件时,某些配置删除了,打开窗口Project Structure -> Appname -> Build Tools Version 内容为value,修改为任意内容即可,如改为23.0.1。
from icepick.
thank you SavAcharya,it solved !
from icepick.
I Reject Embedded JDK ( in 32bit ) because embedded JDK is 64bit
Right click your Project -> Open Module Setting -> SDK Location -> Uncheck Use embedded JDk then set your JDK Path, eg in Ubuntu /usr/lib/jvm/java-8-openjdk-i386
from icepick.
Here are some tips for making mistakes:
Error:ERROR: 9-patch image E:\AndroidStudioProjects\GuangTu\res\drawable-hdpi\tool_box_fragment_bg_focus.9.png malformed.
Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Administrator\AppData\Local\Android\Sdk\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 42
Error:Execution failed for task ':mergeDebugResources'.
E:\AndroidStudioProjects\GuangTu\res\drawable-hdpi\tool_box_fragment_bg_focus.9.png: Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Administrator\AppData\Local\Android\Sdk\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 42
Is it because of the.9.png? The graphics are not standard?
please help me
from icepick.
hello i am getting the same problem , and not able to build the apk, and build is getting successful but when i try to build apk or try to run the app on device it gives me the following error.
Error:Execution failed for task ':app:transformClassesWithDesugarForDebug'.
com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {@ E:\Projects\My\App\Name\app\build\intermediates\tmp\desugar_args4999816675674775397}
On further inspection in the code it gives me the following error
02:41:17.321 [ERROR] [com.android.build.gradle.internal.transforms.DesugarTransform] Exception in thread "main" java.lang.IllegalArgumentException
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108)
at com.google.devtools.build.android.desugar.DefaultMethodClassFixer$DefaultMethodFinder.visit(DefaultMethodClassFixer.java:471)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.defaultMethodsDefined(DefaultMethodClassFixer.java:319)
at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.visitEnd(DefaultMethodClassFixer.java:88)
at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
at com.google.devtools.build.android.desugar.InterfaceDesugaring.visitEnd(InterfaceDesugaring.java:85)
at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
at com.google.devtools.build.android.desugar.LambdaDesugaring.visitEnd(LambdaDesugaring.java:150)
at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:401)
at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:326)
at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:280)
at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:584)
please let me know if anyone have the solution for it.
from icepick.
@karuhanga You saved my day bro!!
from icepick.
Related Issues (20)
- Need a tutorial
- Add support for visibility state HOT 3
- Unable to pre-dex exception HOT 2
- Build fails with java.lang.ExceptionInInitializerError HOT 2
- Fix missing @Override in generated classes HOT 1
- Please release 3.2.0
- Any chance to release under Apache-2.0 ??? HOT 1
- How to save state of serialize object.
- java.util.HashMap cannot be cast to java.util.LinkedHashMap HOT 2
- what I did wrong? HOT 1
- Support incremental annotation processing HOT 11
- Gradle error :app:javaPreCompileDebug
- Process 'command 'C:\Program Files\Android\Android Studio\jre\bin\java.exe'' finished with non-zero exit value 1 HOT 3
- Bundler that modifies object in get method
- Could not find icepick-processor.jar in jcenter() HOT 7
- Guys i am trying to run my gradle project but it is showing some errors, can someone help me
- The proguard rule does not work on MI4 (Android 4.4)
- Execution failed for task ':client-app:bootRun'. > Process 'command 'C:\Program Files\Java\jdk1.8.0_161\bin\java.exe'' finished w ith non-zero exit value 1 HOT 3
- Bug: icepick ver3.2.0:「Developer options: ON> Dont keep activities: ON」, when re-generating Activity, instance state value can not be obtained in Icepick.restoreInstanceState
- module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icepick.