google-developer-training / advanced-android-kotlin-animation-property-animation

Other
12 stars 93 forks source link

Advanced Android in Kotlin: Property Animation 3.1 [Step 2][Project doesn't use Gradle] #3

Open maXXCZ1 opened 4 years ago

maXXCZ1 commented 4 years ago

Describe the problem Android studio suggest to migrate project to use gradle.

In which lesson and step of the codelab can this issue be found? Advanced Android in Kotlin, Lesson 3. , step 2

How to reproduce? Just download and try to open (or import, i tried both) the project in Android Studio. Same happened when i tried to clone project from github.

Versions

  1. What version of Android Studio are you using? - AS 4.0.1
  2. What API level are you targeting? - API 29

Additional information Not really. I would expect every project on this site is based on Gradle and runs smooth in Android Studio (which was always the case with each codelab i opened before). I struggled to migrate it aswell.

codelab: advanced-android-kotlin https://codelabs.developers.google.com/codelabs/advanced-android-kotlin-training-property-animation/index.html?index=..%2F..index#1

naman5665 commented 3 years ago

I am also facing the same issue

noln commented 3 years ago

@naman5665 The project is configured to use Gradle, but I suspect that the problem you're encountering is because you're trying to open the parent directory, which contains both the begin and end project states rather than those project directories themselves.

When you clone from Git in Android Studio directly, it'll open the top level android-kotlin-animation-property-animation directory:

android-kotlin-animation-property-animation/
  |----begin/
  \----end/

Try closing the project that opens up after you clone the repo, then opening either the begin or end subdirectories; they'll load right up like a regular Gradle project, as you're expecting.

naman5665 commented 3 years ago

Hey @noln thank you so much for your help.It solved my problem....