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.

Android Build an Interactive Story App User Input Using EditText for Text Input

Getting error when I try to build

I get "Error:(53) Error parsing XML: not well-formed (invalid token)" for the last line of the xml file: "</android.support.constraint.ConstraintLayout>." I also have 5 other errors:

-Error:java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Failed to execute aapt

-Error:com.android.ide.common.process.ProcessException: Failed to execute aapt

-Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing process /Users/kate/Library/Android/sdk/build-tools/26.0.0/aapt with arguments {package -f --no-crunch -I /Users/kate/Library/Android/sdk/platforms/android-26/android.jar -M /Users/kate/AndroidStudioProjects/InteractiveStory/app/build/intermediates/manifests/instant-run/debug/AndroidManifest.xml -S /Users/kate/AndroidStudioProjects/InteractiveStory/app/build/intermediates/res/merged/debug -m -J /Users/kate/AndroidStudioProjects/InteractiveStory/app/build/generated/source/r/debug -F /Users/kate/AndroidStudioProjects/InteractiveStory/app/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package com.katedoughertywriter.interactivestory -0 apk --preferred-density 420dpi --output-text-symbols /Users/kate/AndroidStudioProjects/InteractiveStory/app/build/intermediates/symbols/debug --no-version-vectors}

-Error:com.android.ide.common.process.ProcessException: Error while executing process /Users/kate/Library/Android/sdk/build-tools/26.0.0/aapt with arguments {package -f --no-crunch -I /Users/kate/Library/Android/sdk/platforms/android-26/android.jar -M /Users/kate/AndroidStudioProjects/InteractiveStory/app/build/intermediates/manifests/instant-run/debug/AndroidManifest.xml -S /Users/kate/AndroidStudioProjects/InteractiveStory/app/build/intermediates/res/merged/debug -m -J /Users/kate/AndroidStudioProjects/InteractiveStory/app/build/generated/source/r/debug -F /Users/kate/AndroidStudioProjects/InteractiveStory/app/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package com.katedoughertywriter.interactivestory -0 apk --preferred-density 420dpi --output-text-symbols /Users/kate/AndroidStudioProjects/InteractiveStory/app/build/intermediates/symbols/debug --no-version-vectors}

-Error:org.gradle.process.internal.ExecException: Process 'command '/Users/kate/Library/Android/sdk/build-tools/26.0.0/aapt'' finished with non-zero exit value 1

I tried searching for updates in AS and did update, but it didn't help. I also enabled Tools | Android | Enable ADB Integration, but that didn't help either.

I don't know where the errors are coming from but I think it would be easier for you if you copied your code in stead so people that are experts could help you.

1 Answer

Nevermind, fixed a simple xml mistake.