简体   繁体   中英

I am a new app developer and I am unsure on how to insert a project from github into my android studio app

So I recently started an android project on android studio and I wanted to use something from github in my project. I watched countless videos but still do not understand. So this is the loading animation I want to use: https://github.com/ybq/Android-SpinKit . In the tutorial, the person is simply copy pasting the Gradle dependency and this : maven{ url" https://jitpack.io "} in the build.gradle scripts. When I further proceed in my XML file, it is not recognizing when I type out Spinkit, whereas in the video it is. When I go to the class to type in the progress bar code, it is giving me errors that it can't recognize the word ProgressBar. I am very lost so any guidance can help? Thanks for being patient:)

build.gradle here is where I am typing the maven code thing

build.gradle, here is where I am typing the implementation code copy pasted from github

this is the XML file where I believe is the issue: the line starting with

here is the java class where I am getting the errors

I understand that I am a very inexperienced developer but I just need a little guidance on this issue

When you click on that github link, you can find a button that says "Clone or download", click there and download the zip file to the code. Unzip it, drag it to the desktop folder for example.

Open AndroidStudio, File, Open, then choose that file. 在此处输入图片说明

You should sync your project so it can recognize your changes in gradle. Just above your code it's showing you a message asking you to sync project first.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM