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 trialShiina Mashiro
757 PointsString types not allowed
Under "Customizing the buttons" of Android Development of Ben, when I run the code we make, an error occur to all @drawables of android studio at values.xml. I don't know how but the "R" symbol in my 2 java class under ui package also has an error saying "Cannot Resolve Symbol 'R'".
Here's the error I got that redirects me to values.xml:
C:\Users\Personal\AndroidStudioProjects\InteractiveStory\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.2.1\res\values\values.xml Error:String types not allowed (at 'activity_horizontal_margin' with value ''). Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Personal\AppData\Local\Android\sdk\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1
Thank You!
Landen Melton
4,204 PointsLanden Melton
4,204 PointsIt's common for R to not resolve if your project won't compile correctly. That will probably resolve once you get the other issues fixed. Perhaps post your values.xml but it sounds like perhaps you're wrapping the value in "" and in values.xml you don't need to. activity_horizontal_margin should just be a value without quotes I believe.