Giter Site home page Giter Site logo

Comments (25)

SavAcharya avatar SavAcharya commented on July 4, 2024 14

Use this ..worked for me

defaultConfig {
// Enabling multidex support.
multiDexEnabled true
}

from icepick.

yolinsoft avatar yolinsoft commented on July 4, 2024 7

Delete android/app/build Folder
try again.

from icepick.

karuhanga avatar karuhanga commented on July 4, 2024 7

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.

frankiesardo avatar frankiesardo commented on July 4, 2024

I think you added the processor as a compile dependency. You should ad it as 'provided', (se in the README).

from icepick.

RobbySmet avatar RobbySmet commented on July 4, 2024

Damn, you're right. Stupid mistake.. Thanks for the quick reply!

from icepick.

isgreen avatar isgreen commented on July 4, 2024

Thanks SavAcharya, you saved my life...

from icepick.

tranmyan avatar tranmyan commented on July 4, 2024

Thank frankiesardo, works for me

from icepick.

ASAIK avatar ASAIK commented on July 4, 2024

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.

gearoof avatar gearoof commented on July 4, 2024

don forget to clean project and rebuild project,,,

from icepick.

dosoos avatar dosoos commented on July 4, 2024

i see the error, very hard

from icepick.

kiddodhaval avatar kiddodhaval commented on July 4, 2024

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.

jacky1234 avatar jacky1234 commented on July 4, 2024

@kiddodhaval I have the same problem with you ,have you solved it?

from icepick.

 avatar commented on July 4, 2024

Thanks @SavAcharya, you saved my life.

from icepick.

hnxzlxf avatar hnxzlxf commented on July 4, 2024

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.

jacky1234 avatar jacky1234 commented on July 4, 2024

可能是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.

hnxzlxf avatar hnxzlxf commented on July 4, 2024

刚才注销了这个 //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.

jacky1234 avatar jacky1234 commented on July 4, 2024

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.

hnxzlxf avatar hnxzlxf commented on July 4, 2024

你有QQ号码?我的511439302

from icepick.

qinhuangdaoStation avatar qinhuangdaoStation commented on July 4, 2024

my problem is caused by unmatched version

from icepick.

welcometotangshan avatar welcometotangshan commented on July 4, 2024

我遇到了相同问题,“finished with non-zero exit value 1”,现在解决了,出现的原因是Android studio自动更新某些部件时,某些配置删除了,打开窗口Project Structure -> Appname -> Build Tools Version 内容为value,修改为任意内容即可,如改为23.0.1。

from icepick.

synwith avatar synwith commented on July 4, 2024

thank you SavAcharya,it solved !

from icepick.

grath92 avatar grath92 commented on July 4, 2024

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.

checkming avatar checkming commented on July 4, 2024

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.

sandeeplondhe avatar sandeeplondhe commented on July 4, 2024

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.

OMARIHAMZA avatar OMARIHAMZA commented on July 4, 2024

@karuhanga You saved my day bro!!

from icepick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.