Friday, 15 February 2013

facebook - Class cast Exception in Android string.xml -



facebook - Class cast Exception in Android string.xml -

i developing android-app uses facebook-sdkv3, created entry in strings.xml:

<resources> <string name="facebook_app_id">"12345678910"</string> </resources>

and added next manifest:

<application> ... <meta-data android:name="com.facebook.sdk.applicationid" android:resource="@string/facebook_app_id" /> </application>

i exception:

02-06 16:35:01.231: w/bundle(8316): key com.facebook.sdk.applicationid expected string value java.lang.integer. default value returned. 02-06 16:35:01.231: w/bundle(8316): effort cast generated internal exception: 02-06 16:35:01.231: w/bundle(8316): java.lang.classcastexception: java.lang.integer cannot cast java.lang.string 02-06 16:35:01.231: w/bundle(8316): @ android.os.bundle.getstring(bundle.java:1061) 02-06 16:35:01.231: w/bundle(8316): @ com.facebook.internal.utility.getmetadataapplicationid(utility.java:159)

i tried set numbers in "" did not solve problem, hope can help me.

change android:resource android:value

android facebook facebook-android-sdk

No comments:

Post a Comment