[ 
https://issues.apache.org/jira/browse/CB-7675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14155300#comment-14155300
 ] 

Arne Sikström commented on CB-7675:
-----------------------------------

I created a test app that will crash and put it here: 
http://www.frostyelk.se/testarea/hellofacebook.zip
Pressing the Login button should bring up the FB-login screen and a progressbar 
but crashes with:
java.lang.NoClassDefFoundError: com.facebook.android.R$layout

Delete ant-gen and ant-build from all folders, rename custom_rules.xml and make 
a new build.
All functions in the test app should now work.



> custom_rules.xml breaks FacebookConnect plugin
> ----------------------------------------------
>
>                 Key: CB-7675
>                 URL: https://issues.apache.org/jira/browse/CB-7675
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.6.0
>         Environment: Windows8
>            Reporter: Arne Sikström
>            Assignee: Ian Clelland
>
> The plugin FacebookConnect 
> https://github.com/Wizcorp/phonegap-facebook-plugin builds ok but fails 
> during runtime with NPEs for missing resources.
> After removing the custom_rules.xml the plugin builds and runs fine. 
> If the custom_rules.xml file is present the build uses ant-gen and ant-build 
> which seems to confuse the aapt tool or something as the resources get out of 
> sync with the R file?
> Commands:
> cordova platform add android
> cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git 
> --variable APP_ID="<id>" --variable APP_NAME="Hello Frosty"
> cordova run



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to