microsoft / Cognitive-Face-Android

Cognitive Services Face client library for Android.
https://www.microsoft.com/cognitive-services/en-us/face-api
Other
269 stars 151 forks source link

Importing the project into android studio #5

Closed learnTech2022 closed 7 years ago

learnTech2022 commented 7 years ago

i have downloaded the code from github, it has sample, data, client library . i am bit confused which part to import in my android studio. i tried importing sample part but it was throwing lot of errors while building the project. Please suggest me how to import it properly so that i can be able to run the code properly to see the FACE API demo.

Thanks in advance, Krishna P

bancey commented 7 years ago

You wouldn't want to import the client library as you should be referencing that as a dependency, either by directly adding it to the build path or using Maven/Gradle to resolve it for you. To import the sample select the "import from Gradle" option and set the root directory to the "Sample" folder.

Also I'm not sure why you have created two issues about the same thing?

learnTech2022 commented 7 years ago

thanks for replying, following are the problems i am facing

  1. as u said, their is no import from gradle option in my android studioo image
  2. as u said, i am just trying to import the sample folder. image
  3. after importing the project, this is what the error im getting image
  4. also after importing the project, the project structure does not seem to be correct. Please answer these questions to get me started. i am working on this for the first time, so please bare with my little knowledge on these things.

and also i apologise for creating two issues for the same problem

Thank you so much Krishna

bancey commented 7 years ago

Can you try importing the project by selecting the "settings.gradle" file as shown in following image. image

However its worth noting that I have no problems importing the project just by using the base folder, can you confirm that your installation of android studio is complete and you have the latest version?

YDrall commented 7 years ago

or you can try this(it worked for me): Go to file->New->Import Project then select sample folder of the repository.

huxuan commented 7 years ago

Close as the the thread is too old. If you encounter similar problem, please open a new one as the code might changed a lot.