Seem doesn't get Facebook SDK resource when using Facebook Android SDK in IntelliJ IDEA 12

前端 未结 4 2148
轻奢々
轻奢々 2020-12-08 12:49

According to the article Add facebook SDK to IntelliJ Android project?, I choose to add the \"facebook.jar\" file as a Module in the \"Dependencies<

4条回答
  •  轮回少年
    2020-12-08 12:54

    OK, finally got the facebook android SDK worked for me. Here are the order of steps I did.

    1. Open up and be in your current android project then select File | New Module
    2. Choose "Library Module" on the left-side panel.
    3. Fill in the required information on the right-side panel. Here I just given the:
      • Module name: "facebook"
      • Content root: Choose where the downloaded facebook android SDK is, and be sure to select the subfolder named "facebook"
        select facebook subfolder

      • Module file location: same as Content root
        New Module Window in IntelliJ IDEA 12
      • Package name: com.facebook.android (Guess could assign arbitrarily?)
    4. Click finish button and wowla~ you got the facebook android sdk module in your project.
    5. Go to File | Project Structure then select the Modules pages at the left panel
      enter image description here
    6. Select your original android project, Click Plus(Add) button to add a new Module Dependency, you will see the facebook module we created above just shown for selection. Select it.
    7. Click the apply, OK button. Then you got the facebook android SDK worked flawlessly in you android application. Congrats!!

提交回复
热议问题