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 trial

Android Build a Simple Android App (2014) Creating the Screen Layout Using a Fullscreen Theme

Cody Barrus
Cody Barrus
4,765 Points

Error 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

Hi Cody,

Can you paste your activity_fun_facts.xml file in here, please?

Thanks,

Steve.