New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android "Unfortunately, [app_name] has stopped" #194
Comments
With example from sample folder same thing...any thoughts? |
i also got this message with latest ANE version on Android device. Please fix it help me. |
Have you checked the system log for the cause of the crash? I have the exact same issue, and according to the log a missing resource causes the crashing on openSessionWithReadPermissions. E/AndroidRuntime(30971): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x7f070013 EDIT: I had the another missing resource related issue (#175) with an older build, but had no luck with the solution provided there. |
Hi vlook, could you tell me how to read the error log? |
Have the same problem , please any solution ? |
phpandroid, I'm just using logcat to collect the log dumps from the device. adb logcat -d > androidlog.txt |
If this is the same issue I experienced I've fixed it in my pull request #200 . |
@mattmurton Thanks for your help and info about java 1.6 (that was baffling me!). We just tried your ANE and still have the problem "Unfortunately, [App Name] has stopped." upon trying to call |
I was experiencing the same problem upon calling do login with read permissions until I used @mattmurton 's change. I still get the same error after the login process has completed though. |
E/AndroidRuntime(28585): java.lang.RuntimeException: Unable to pause activity {air.com.app/com.facebook.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference |
I just wanted to chime in and say that we're having the same problem. Has anyone been able to get this working yet? @mattmurton that solution didn't seem to make any difference for me. Same problem after calling openSessionWithReadPermissions, the app crashes with the "Unfortunately, [app_name] has stopped" error. |
@BadViking - we reverted back to the working commit 1e6a221 for our Android project due to time constraints. |
It seems the latest commit contains all of the R.* resource calls and the ANE is built with them. This is causing the problem. The author stated in the README:
After doing as he said the java.lang.NullPointerException is resolved. If somebody is interested i can fork and push my changes. Unfortunately i am unable to build the ANE for iOS as i am building the entire thing on Windows (i currently don't care about iOS anyway) |
@wastedabuser Is it possible to fork/push your solution with Android ANE please? I think it will help all with the same problem. |
@hlavko i did, check it out here: https://github.com/wastedabuser/ANE-Facebook |
Same thing... |
@wastedabuser's version works for me, but sadly it's only for Android. Minor issues:
|
I have the exactly same problem like everyone else with the Facebook ANE from freshplanet, change it to the @wastedabuser ANE fixs it. |
Keep in mind that wastedabuser's ANE works only with Android. I had struggled a lot with this, found many versions witch supported both platforms and at last made one work, but when I integrated it into our game it failed again. So I switched to commetcial ane and am happy with this decision. Thanks to Freshplanet for providing opensource extension, but I should let you know that you might lose a lot of time making it work and it can fail anyway. |
@wastedabuser Thanks for support! I've heard that the Exception is the SDK problem then I spend whole day for Update freshplanet android source to facebook SDK 4.7, finally I stuck when many error cause java sdk1.6... Anyway, I simply unpack your ANE and repack it with iOS part (nothing change) , I can use it smoothly either iOS or Android now. |
When I am trying to fb login this message appears: "Unfortunately, [app_name] has stopped".
Latest ANE ver. Please help me to solve this problem. Thank you!
My manifest:
The text was updated successfully, but these errors were encountered: