Android Studio integration.

I’m migrating from the old Facebook lib to the v4 plugin, but I’m using Android Studio (and Corona Enterprise 2886) and I’m not sure exactly how to integrate it. 

When I first switched over to Android Studio I worked out how to integrate my existing libraries by other putting the jars into the libs folder, or adding dependencies to the build.gradle file. 

With the v4 plugin I’m not sure where to start (other than adding the plugin.facebook.v4.jar to my libs). 

It doesn’t have a project.properties file so I can’t add a project reference there. I think that I could add one in the settings.gradle file, but I’ve tried including the 4.5.0 folder to my project only to get the following error when I try and build:

 Position 88:36-63 : No resource found that matches the given name (at 'layout\_height' with value '@dimen/picker\_divider\_width'). Position 30:36-63 : No resource found that matches the given name (at 'layout\_height' with value '@dimen/picker\_divider\_width').

I’ve also tried not including that project at all, and putting the facebook_sdk.jar into my libs folder instead. That did build and the app ran, but when I tried to login I get this error:

05-27 09:53:10.367: E/Parcel(821): Class not found when unmarshalling: com.facebook.login.LoginClient$Request 05-27 09:53:10.367: E/Parcel(821): java.lang.ClassNotFoundException: com.facebook.login.LoginClient$Request

Has anyone already integrated this plugin using Android Studio, or could someone from Corona point me in the right direction? In the meantime I’ll keep trying to solve it and will update this post if I succeed.

Please see my post in the Enterprise forum for step-by-step instructions:

https://forums.coronalabs.com/topic/63669-how-to-use-facebook-v4-with-android-studio/

Please see my post in the Enterprise forum for step-by-step instructions:

https://forums.coronalabs.com/topic/63669-how-to-use-facebook-v4-with-android-studio/