Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle build Failure #42

Closed
adeelahmad94 opened this issue Aug 30, 2015 · 11 comments
Closed

Gradle build Failure #42

adeelahmad94 opened this issue Aug 30, 2015 · 11 comments
Assignees
Labels
bug Acknowledged bug in Upload Service
Milestone

Comments

@adeelahmad94
Copy link

i've added screen shots of build.gradle (Project) and build.gradle (Module : app ) . build fails when a add this dependency :

        compile 'com.github.alexbbb:android-upload-service:1.3'

and error is :

Error:Execution failed for task ':app:dexDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

screen shot 2015-08-30 at 11 49 47 am
screen shot 2015-08-30 at 11 50 05 am

@alexbbb
Copy link
Contributor

alexbbb commented Aug 30, 2015

Check #41

@adeelahmad94
Copy link
Author

dependencies {
compile 'com.github.alexbbb:android-upload-service:51cfe3d32d'
}

Eliminated the Gradle sync. error i mentioned above , now error is occuring on RUN :

Error:Execution failed for task ':app:dexDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

same i guess , i tried commenting
compile fileTree(dir: 'libs', include: ['*.jar'])
but nothing

@alexbbb
Copy link
Contributor

alexbbb commented Aug 30, 2015

Have you followed the setup instructions in the readme after that you've
set the gradle dependency?
Il 30/ago/2015 09:21 AM, "linkindrew" notifications@github.com ha scritto:

dependencies {
compile 'com.github.alexbbb:android-upload-service:51cfe3d32d'
}

Eliminated the Gradle sync. error i mentioned above , now error is
occuring on RUN :

Error:Execution failed for task ':app:dexDebug'.

com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException: Process 'command
'/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/java''
finished with non-zero exit value 2

same i guess , i tried commenting
compile fileTree(dir: 'libs', include: ['*.jar'])
but nothing


Reply to this email directly or view it on GitHub
#42 (comment)
.

@adeelahmad94
Copy link
Author

yup , i have setup manifest according to instructions . here is result
screen shot 2015-08-30 at 1 18 42 pm
:

screen shot 2015-08-30 at 1 18 16 pm

@adeelahmad94
Copy link
Author

note that "tools:replace="android:theme" had no effect , and removing "android:exported=false" from service tag eliminated 2nd error , but old error comes back

@alexbbb
Copy link
Contributor

alexbbb commented Aug 30, 2015

There was an error in the demo application's gradle build file.
Made a commit to fix it: 247ce33
Please update your local source files to the latest commit and try again

@adeelahmad94
Copy link
Author

no success ... successful gradle sync. but failure in execution :

Error:Execution failed for task ':app:dexDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

@adeelahmad94
Copy link
Author

please notice my "compileSDKVersion" and "buildToolsVersion" in gradle.build image above , could they be causing this ? should i change those too ?

alexbbb pushed a commit that referenced this issue Aug 30, 2015
@alexbbb
Copy link
Contributor

alexbbb commented Aug 30, 2015

I seem to have found what caused the issue! When you include different versions of some dependency libraries (in this case android-support-v4.jar) it fails to run. Made another commit: e257d72
Please update your sources and retry :)

@adeelahmad94
Copy link
Author

finally , perfect . Thanks alot for special effort. you are the man :) :) p.s sent you friend req. on fb . w'd be my pleasure if u accept :)

@alexbbb alexbbb added the bug Acknowledged bug in Upload Service label Aug 30, 2015
@alexbbb alexbbb added this to the 1.3.1 milestone Aug 30, 2015
@alexbbb alexbbb self-assigned this Aug 30, 2015
@alexbbb
Copy link
Contributor

alexbbb commented Aug 30, 2015

Thank you, too 👍
Made the minor release 1.3.1: https://github.com/alexbbb/android-upload-service/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Acknowledged bug in Upload Service
Projects
None yet
Development

No branches or pull requests

2 participants