yankai-victor / Loading

Android loading view
1.23k stars 203 forks source link

can't import #20

Open AndroidDeveloperLB opened 6 years ago

AndroidDeveloperLB commented 6 years ago

I get this:

image

yankai-victor commented 6 years ago

Did you install java environment? Read the words in red color.

AndroidDeveloperLB commented 6 years ago

@yankai-victor I've already been able to build and run countless of apps, including make my own. The JDK is installed already. I don't get why would this be different here.

yankai-victor commented 6 years ago

tim 20180310093708

Check JDK Location

AndroidDeveloperLB commented 6 years ago

I tried now this: image

But got the error you see at the bottom.

yankai-victor commented 6 years ago

You can compare the project structure with your own Android project. And you may find the difference.

AndroidDeveloperLB commented 6 years ago

I tried various configurations, on 2 PCs. Please fix the project. It shouldn't be hard to build.

yankai-victor commented 6 years ago

tim 20180312163731 I try it. And it works fine. So it's a little weird.

AndroidDeveloperLB commented 6 years ago

@yankai-victor Since this is an Android Studio project, you are supposed to choose to open it, not import it.

yankai-victor commented 6 years ago

@AndroidDeveloperLB I choose open an existing Android studio project. And update the gradle version. It also works fine. Do you use the latest version of Android studio?

AndroidDeveloperLB commented 6 years ago

@yankai-victor I can't use any newer version that what I have currently: Android Studio 3.2 Canary 5 Build #AI-173.4630681, built on March 2, 2018 JRE: 1.8.0_152-release-1136-b01 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0

I tried again now. Just as before, I had to update the gradle version (to 3.0.1), and still got the same issue:

image