• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Lawrence-Cheuk · Jun 09, 2014 at 12:32 PM · facebook

Failed to recompile android resource files. See the Console for details

  1. I can see .meta files in the res folder, is it the .meta files causing the error

  2. I have jdk 1.6 installed

  3. I tried competely removed jre so it must be jdk

  4. I import the fb sdk in new unity project, so it is not caused by other plugin..but failed

  5. I read the facebook.com unity sdk page for android many times, it just tell us to import the package..which obviously not work...I guess it need to export to .jar first but dont know the way

  6. I tried to recompile the sdk from the src using eclipse...added the references path, but it shows 689 errors, including missing com.facebook.Session, com.facebook.Internal.Utility etc...failed

  7. I searched stack overflow, placed question..but it seems every is using it with out resource compile error...I cannot find any solution....

  8. I tried all version and find that only version 4.2.4 or below can be used. as it does not contains res, src folder. sdk4.2.4 only have a jar file...

  9. I added this line in the build.xml, try to exclude the problem caused by .meta but failed:

        <property name="aapt.ignore.assets" value="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~:!*.meta" />
    
  10. I have been stucked here for 2 weeks...will be fired by my boss if I cannot fix it....and I have two kids to feed

To reproduce, create a new project import facebook for unity sdk downloaded from facebook (any version above 4.2.4 will cause this error)

 -bootclasspath "C:/Users/someone/Desktop/adt-bundle-windows-x86/adt-bundle-windows-x86/sdk/platforms/android-17\android.jar" -d "C:\Users\someone\thefolder\Roster Plus Unity\Facebook sdk 5.0.4\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding ascii "com\facebook\android\R.java" "net\thisismycompany\testing\R.java"
 Picked up _JAVA_OPTIONS: -Xmx512M


It stated to see the console for detail, but the command is called by unity, I cannot see the console...

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image HarshadK · Jun 09, 2014 at 01:31 PM 0
Share

Can you post the errors from log file. How can I find editor log file?

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by EvastDev · Aug 04, 2014 at 10:29 AM

before starting build, disable .meta files. (Edit-ProjectSettings-Editor-VersionControl-Disabled)

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AkooleGame · Nov 25, 2014 at 02:25 PM 0
Share

Which Unity version? In Unity4.3.2 there is no such Disabled option.

avatar image
0

Answer by sebscholl · Sep 11, 2016 at 03:45 PM

Hey there, I was having this same issue. It was solved simply by updating my JDK to 1.8.01. Go Unity > Preferences > External Tools and next to the JDK input press download. It will take you to Oracles download page. After downloading the latest JDK, go back to the External Tools menu and browse for the newly updated JDK.

Good luck!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
3

Answer by gajendrakumartwinwal · Jun 15, 2017 at 09:57 AM

Just change jdk from 1.7 to 1.8 resolved my issue.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

24 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

facebook with unity problem 0 Answers

Openkit Facebook Leaderboard 1 Answer

Auto LogIn into face book 0 Answers

4.6.2 64bit Does Facebook SDK work? 1 Answer

android game crash after posting on facebook through native app 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges