googlearchive / android-DirectorySelection

Deprecated
Apache License 2.0
111 stars 51 forks source link

can't import #9

Closed AndroidDeveloperLB closed 5 years ago

AndroidDeveloperLB commented 5 years ago

It has an empty gradle file:

https://github.com/googlesamples/android-DirectorySelection/blob/master/build.gradle

So I get this:

image

std829 commented 5 years ago

the gradle file for the application module exists. You're probably getting the error because you don't have the same Build tools version. Have you tried updating those as per the suggestions you're getting at the end of the error message? It worked on mine when I sync'ed it properly.

AndroidDeveloperLB commented 5 years ago

@std829 Look :

image

But for some reason, now I can run it:

image

How come?

std829 commented 5 years ago

You will notice that there are two gradle files in the project. As I mentioned before, the gradle for the applications module is not empty and is responsible for setting up teh project. Maybe you have updated the gradle tools since you last tried to run it and that is why the build was successful this time around.

AndroidDeveloperLB commented 5 years ago

I don't know. It's weird. Why the other gradle file is empty? And how come the project can work with it being empty?