Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Cody Barrus
4,765 PointsError when I attempt to run app...
When I try to launch the app within the generator I get this error:
Error:(11, 17) Execution failed for task ':app:processDebugResources'.
com.android.ide.common.internal.LoggedErrorException: Failed to run command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt package -f --no-crunch -I /Applications/Android Studio.app/sdk/platforms/android-19/android.jar -M /Users/codybarrus/AndroidStudioProjects/FunFacts/app/build/intermediates/manifests/debug/AndroidManifest.xml -S /Users/codybarrus/AndroidStudioProjects/FunFacts/app/build/intermediates/res/debug -A /Users/codybarrus/AndroidStudioProjects/FunFacts/app/build/intermediates/assets/debug -m -J /Users/codybarrus/AndroidStudioProjects/FunFacts/app/build/generated/source/r/debug -F /Users/codybarrus/AndroidStudioProjects/FunFacts/app/build/intermediates/libs/app-debug.ap_ --debug-mode --custom-package com.awayandaway.funfacts -0 apk Error Code: 1 Output: /Users/codybarrus/AndroidStudioProjects/FunFacts/app/build/intermediates/res/debug/layout/activity_fun_facts.xml:1: error: Error: Resource id cannot be an empty string (at 'id' with value '@+id/').
I can see the android:id="@+id" in the xml file, but don't know what to do from there. Please help.
1 Answer

Steve Hunter
57,684 PointsHi Cody,
Can you paste your activity_fun_facts.xml
file in here, please?
Thanks,
Steve.