Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free triallizeth jurado
1,379 PointsError sh: 1: glxinfo: not found Android Studio
I create my app but when I am trying to run it, a error appear in my console the error is sh:1:glxinfo . I copy my adroid studio folder in home so the root is not the problem. I think is the version. Could anybody help me?
FAILURE: Build failed with an exception.
-
What went wrong: Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/lizeth/Android/Sdk/build-tools/19.1.0/aapt'' finished with non-zero exit value 1
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 24.691 secs
lizeth jurado
1,379 PointsYes teacher , I have tried that solution but I have the same mistake another thing is the version I am using linux and andrioid studio make me a warning about update it, but in the new version 2.2.3 does not have for ubuntu
1 Answer
Jess Pendley
13,128 PointsHi, lizeth jurado!
I had the same problem before and after a lot of googling, adding the below code to my gradle.build did the trick.
android {
dexOptions {
incremental = true;
preDexLibraries = false
javaMaxHeapSize "4g" // 2g should be also OK
}
}
Hope that works for you. :)
Ben Deitch
Treehouse TeacherBen Deitch
Treehouse TeacherHave you tried cleaning and rebuilding the project (on the Build tab)? Also, sometimes File -> Invalidate Caches and Restart is successful with these weird errors.