How to add Facebook dependency offline on Android Studio

I am trying to write a program that can update Facebook, but I have problems adding a dependency on Facebook. I already have sdk , but I can not add it to the project, because ... Err even if I tried adding the gradle.prperties file to the extracted facebook folder as the comment suggested here

Next, I tried to add, as suggested on the official Facebook page , but I hit this error ... Err2

Now, because if the price of the data is where I come from, I would prefer not to go online since I already have sdk locally, so my question is, how can I manually cache sdk in my project?

EDIT: for clarity, my question is: HOW DO I ADD A FACEBOOK SDK TO MY PROJECT WITHOUT ONLINE (i.e. ONLINE STORY)?

+5
source share
3 answers

Download Facebook Android SDK 4.24.0 ARR from here

Then, To import the .aar library:

  • Add the .aar file to the libs folder.
  • Use the "New module" option in the "File" menu.
  • Import the .aar file.
  • Compile gradle and compile the project.
+3
source

In my experience, all you have to do is set up an offline android studio compilation option and create it once. After that, you can rebuild as much as you can without leaving the network.

Here is a link to configure a standalone option. Hope this helps: https://hackernoon.com/speed-up-gradle-build-in-android-studio-80a5f74ac9ed?gi=2bb71fe06274

+1
source

try this offline mode on Android Studio

disable offline enable offline

+1
source

Source: https://habr.com/ru/post/1269256/


All Articles