android - Can't run with Facebook SDK included -


i stuck when trying run app facebooksdk android included project in intellij idea.

with basic android boilerplate, builds , runs fine. try add facebook sdk project explained in this post, multiple errors:

java: /users/me/projects/android/facebook/src/com/facebook/widget/loginbutton.java:25: package android.support.v4.app not exist  java: /users/me/projects/android/facebook/src/com/facebook/widget/loginbutton.java:33: cannot find symbol symbol  : class r location: package com.facebook.android 

project details

detailed screenshots:

enter image description here

enter image description here

enter image description here

why , how can solve it?

download: can download test project here.

the problem project facebook sdk module has altered androidmanifest.xml file specifies wrong package causing r.java file produced in different package, hence non-working imports.

original androidmanifest.xml file can found here:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"           package="com.facebook.android">     <application/>     <uses-sdk android:minsdkversion="8" /> </manifest> 

see answer regarding proper android-support-v4.jar dependency configuration.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -