Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 gabri74 · Nov 21, 2013 at 04:52 PM · androiderrorbuildfacebookmanifest

can't build android app with facebook sdk

Hello,

we are trying to integrate facebook sdk on our project, but we are stuck after the correct generation of the hash key.

FB Init() work correctly in play mode, i receive logging in =true;

But

when i try to build my apk for Android i get this error:

Error building Player: Win32Exception: ApplicationName='C:\Program Files (x86)\Java\jre7\bin\javac.exe', CommandLine='-bootclasspath "C:/Users/gabriele/AppData/Local/Android/android-sdk/platforms/android-19\android.jar" -d "E:\unity4Projects\test\testLogin1.2\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding ascii "com\ExclusiveStudios\myGame\R.java" "com\facebook\android\R.java"', CurrentDirectory='E:\unity4Projects\test\testLogin1.2\Temp\StagingArea\gen'

we searched a lot around for information and we tryed some different options offered by this fantastic comunity, but none worked, if we understand correctly there should be a problem on android Manifest Main Activity?

We are currently experimenting with just the facebook sdk with the demo sceene, so nothing else could create bugs.

It seems that this is a problem which a lot of us has found, but we haven't found the answer.

Thank you

Comment
Add comment · Show 8
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 Kolyunya · Nov 28, 2013 at 12:08 PM 0
Share

We are experiencing the very same problem and haven't found a solution yet.

avatar image ipman · Dec 02, 2013 at 07:57 PM 0
Share

Same problem here! any news?

avatar image gabri74 · Dec 03, 2013 at 07:20 AM 0
Share

Still not solved

avatar image Kolyunya · Dec 03, 2013 at 08:01 AM 0
Share

I've seen may solutions which said to to install x86 Java in addition to x64. This didn't help me. Anyone tried this?

avatar image gabri74 · Dec 03, 2013 at 08:26 AM 0
Share

I tryed everything i found around in these forum to the point that i think i'll format my c: and do a new clean install.. this plugin is the first one i tryed without any success in 2 years. This plugin shouldn't be on asset store because as it is now on android doesn't work or should be stated that doesn't work on android without heavvy java skills which the normal unity developer doesn't focus on. That's of course is my opinion..

Show more comments

5 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by abhishekdeb · Dec 25, 2013 at 08:34 AM

Got it working guyz... I am using Windows 8.1 pro 64 bit. Download the latest Facebook SDK. Download Java 6 SDK 32-bit. It will work. Caution: Even if you are using a 64 bit OS, use only Java 6 SDK 32 bit. Java 7 does not work. Links:

  1. Facebook SDK

  2. Java 6 SDK ( 32-bit)

And please make sure, you are downloading Java SE Development Kit 6u45 and nothing else.

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 soulburner · Mar 27, 2014 at 01:17 PM 0
Share

Thanks! Installking Java 6 32-bit helped!

avatar image
1

Answer by arrast · Mar 06, 2014 at 12:50 PM

If you want to build a project with the Facebook Unity SDK you have to make sure that you ONLY have the Java SDK, not the JRE.

If you have the JRE installed, it will crash.

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
0

Answer by gabri74 · Dec 09, 2013 at 11:30 AM

ok the only way to make a build without that error is to use FB SDK 4.2.4 which are old.

that's not a real solution because we can't use the latest sdk but at least i can get a build.

Hope this helps you guys.

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 vivalavladislav · Jan 09, 2014 at 12:50 PM 0
Share

thanks, worked

avatar image
0

Answer by nazia08 · Mar 21, 2014 at 06:32 AM

Try easy facebook android sdk , it's simple LGPL library for android.

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
0

Answer by ethanliew · Aug 01, 2017 at 05:50 AM

You may try to remove this aar ( which is duplicated in FB SDK with android SDK )

Assets\Plugins\Android\support-v4-25.3.1.aar

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.

Follow this Question

Answers Answers and Comments

26 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 avatar image avatar image

Related Questions

the min sdk version cannot be specified in the androidmanifest.xml file. you have to remove it. 4 Answers

How To fix FacebookSDK merge error in androidmanifest.xml ? 0 Answers

Android build "Failed to re-package resources" 2 Answers

Firebase and Facebook SDK not building 1 Answer

Android Build problem? 2 Answers


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