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 trialUnsubscribed User
373 PointsUsing the camera in android tutorial. The default project doesnt work! I get the same error! with PNG not converting
These are the kind of errors i recieve. I dont know what i am doing wrong? Just downloaded the project and followed the instructions.
Error:com.android.builder.internal.aapt.AaptException: Failed to crunch file C:\Users\Mads\Desktop\Android Development\android-using-the-camera-workshop-6a42beb7ddb68d3ae94de3bfec48ea73990caf1c\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.4.0\res\drawable-mdpi-v4\abc_switch_track_mtrl_alpha.9.png into C:\Users\Mads\Desktop\Android Development\android-using-the-camera-workshop-6a42beb7ddb68d3ae94de3bfec48ea73990caf1c\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\abc_switch_track_mtrl_alpha.9.png
1 Answer
Seth Kroger
56,413 PointsFirst try doing Clean Project then Rebuild Project, both in the Build menu. You may also need to update the gradle plugin used for the project. There's usually a dialog that asks you about it when you open the project if it's out of date.