hi i have been trying to add the facebook sdk to my project in android studio its in my file tree and i can use it limitedly, eg; i can use a facebook login button but if i run the app it crashes at start up, i think i have to import the module for it but android studio wont/cant find it, im still new to android so please tell me if im just missing something simple, here are some screen shots of me going through the motions,
by right clicking on the project and pressing f4 i go to module settings
from here i select my project, go to the dependencies tab and select the + from the top right corner
,
but this is what i get
so my question is should the libraries:facebook be here or am i in the wrong menu? this seems a little different to the tutorials ive been watching but ive put this down to me using android studio 0.5.8 can anybody give me any suggestions as to what to try next?
The answer you're looking for is precisely described here... using facebook sdk in android studio
and here, How to import a Module on Android Studio 0.5.1?
Related
Just started learning android so i checked some online curses on how to set up my android studio project. The program version is up to date but i am getting a different new project screen the people do on videos. So i don't get to write the company domain, choose for what platform or pick the activity module. Tried to reinstall it but nothing changes. Not sure if i should/can continue the tutorials without that. Probably is just a simple mistake somewhere buti cant seem to find it.
1. picture of what android studio shows me
2. picture of what android studio shows me
3. picture of what android studio shows me
Android projects are built by Gradle build system nowadays. So you should select Gradle from the left menu and then slect the make the rest of your project configuration as you wish.
I am working with a Flutter example project where it shows how to share a FlutterView inside an Android application (and iOS also).
While working with it I tried this:
I make changes to the android project like changing the theme color, if I do hot-reload/run for main.dart I don't see the changes reflected in the running app. I have to stop it from Android Studio and run the main.dart again to see the changes.
To solve the issue I was thinking to add a run/debug configuration for Android app module. So that I could run android app and not main.dart.
Is there a way how to achieve this in Android Studio?
One solution for me was to open the android(/flutter_view/android/app) project from a new window in Android studio. I could run the app this way.
(But here I encountered another issue in case anyone has the solution).
According to my understanding you face problems when you open your project and try to run.
Android studio asks you to configure your project to be able to run...
It's easy to solve near to run button you will find "add configuration" button just press then from left side select "flutter" and put in the field "entrypoint" your main Dart file path main.dart...
EX. E:/project/lib/main.dart....
Then from top right corner press "create configuration"...
That's it.
For Configure your Flutter app on Android you have to Upgrade Gradle file..
So Go to the Tool and at you will find AGP upgrade Assistant..
It Download new Gradle file then its Config automatic..
I have created a libgdx project using the installer from http://libgdx.badlogicgames.com/download.html and the Gradle extension for Android Studio.
Example for IntelliJ IDEA: Go to the Hiero class, right click and select Run Hiero.main(). On the Run >configurations popup that will appear, select the Desktop module, and click Run.
How do you do this under Android Studio?
I just found out the procedure. I leave the answer for those fellow beginners who may come across this problem like me:
go to structure tab beneath the project tab and the rest is the same as the above example for IntelliJ IDEA
I've literally spent days trying to figure out whats going on, but no matter what project I try to push/share to GitHub when I select the 'share project on GitHub' button under VCS --> Import into version control --> Share project on GitHub this dialog box will pop up:
So like I said, this occurred in one project so I closed and attempted to do the same from a newer project, however I keep getting the same result. The project that it keeps referring to was built in Xcode for the iPhone not within Android Studio. Why does this keep happening?
Thanks in advance.
How can I work an Android studio project from work and later at home without having configuration issues, shall I use something like dropbox ?
You will be delighted to know that there wont be any configuration issues at all.
Android Studio Projects ar portable.
You just have to Copy the project from office. Bring it at home. And import it in your Android Studio by clicking Import existing android studio project. 1st time it will show an error message, mentioning that the sdk directory didn't matched. But don't worry, clicking OK button will solve the issue it self.
Just make sure your sdk manager is up to date in both machine of home and office.