Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7871833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:01:35+00:00 2026-06-03T02:01:35+00:00

I followed Facebook’s Android dev site to setup Facebook Android projects in Eclipse: https://developers.facebook.com/docs/guides/mobile/android_hackbook/

  • 0

I followed Facebook’s Android dev site to setup Facebook Android projects in Eclipse:
https://developers.facebook.com/docs/guides/mobile/android_hackbook/

I used the “debug” target in build.xml to build using Ant. But I’m getting these errors:

[aapt] E:\Android\facebook-android-sdk\examples\Hackbook\res\layout\token_refresh.xml:15: error: Error: String types not allowed (at ‘layout_width’ with value ‘match_parent’).
[aapt] E:\Android\facebook-android-sdk\examples\Hackbook\res\layout\token_refresh.xml:28: error: Error: String types not allowed (at ‘layout_width’ with value ‘match_parent’).

BUILD FAILED
C:\Android\android-sdk-windows\tools\ant\build.xml:598: The following error occurred while executing this line:
C:\Android\android-sdk-windows\tools\ant\build.xml:627: null returned: 1

Why is the token_refresh.xml erroring out? I haven’t made any changes to the latest facebook sdk that I pulled down from github.

I did change Hackbook’s APP_ID to use a new one I created. I have the facebook sdk referenced in this project. I have libs folder in this project.

I open token_refresh.xml and it shows these errors in the log:

NOTE: This project contains resource errors, so aapt did not succeed, which can cause rendering failures. Fix resource problems first.

Failed to convert @color/grey into a drawable
Couldn't resolve resource @string/app_name
Couldn't resolve resource @string/access_token_label
Couldn't resolve resource @string/access_token_expires_label
Couldn't resolve resource @color/grey
Couldn't resolve resource @string/refresh_button
Couldn't resolve resource @string/tip_label
Couldn't resolve resource @string/refresh_token_tip
Exception details are logged in Window > Show View > Error Log

Does anyone know how to fix these problems?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:01:37+00:00Added an answer on June 3, 2026 at 2:01 am

    Hackbook only works on Android SDK 2.2 +. I had it set to 2.1, so it didn’t work. Now it compiles and runs on my AVD 2.2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I followed steps here: https://developers.facebook.com/docs/guides/mobile/#android but I really don't get how use Graph API
I followed the tutorial here: https://developers.facebook.com/docs/mobile/android/build/#enablesso I am able to authenticate on the android
I've followed this tutorial: https://developers.facebook.com/docs/opengraph/tutorial/ multiple times and always get the same result. I
I followed http://developers.facebook.com/docs/authentication and got the access_token of a user. Now, I want to
I followed the instruction on this page ( http://developers.facebook.com/docs/authentication/ ) to add facebook authentication
I've followed the instructions on http://developers.facebook.com/docs/api#authorization using the standard PHP library. Everything works fine
I followed the instruction on adding Facebook Android SDK to Eclipse, but for some
I followed the example here -- https://github.com/facebook/php-sdk : require 'php-sdk/src/facebook.php'; $facebook = new Facebook(array(
I followed this tutorial here: http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/ It works great but when I enable CSRF
I followed this tutorial: https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf However, I can't seem to set the path right.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.