googlecodelabs / watchface

Create a watchface for Android Wear
https://codelabs.developers.google.com/codelabs/watchface/
Apache License 2.0
21 stars 22 forks source link

"Could not initialize class com.android.sdklib.repository.AndroidSdkHandler" on Studio 4.2.1 #7

Open HeartBytes opened 3 years ago

HeartBytes commented 3 years ago

The watchfaces tutorial / example does not load on a current fresh install of Android Studio 4.2.1 (identical errormessage in Windows and Fedora 34).

The Gradle Project Sync fails with this message: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

I tried the solutions provided at stackoverfow but to no effect.

I just want to create watchfaces and it's very frustrating that the tutorial / example provided by google would not even load.

imho, ALL tutorials (that are directed to beginners after all, at least not experts for sure) should open flawlessly on any fresh Android Studio - they should be checked and updated for any stable release.

While it may not be a problem for a seasoned professional, getting this outdated example to even load and run is an insurmountable obstacle for any newbie who just learns about coding in Android Studio.

Rahulv2492 commented 3 years ago

I am also facing same issue for Android Studio 4.2.1

akashunni commented 3 years ago

I have the same issue and looks like this repo is not maintained. I'm following the kotlin version, it works fine

https://developer.android.com/codelabs/watchface-kotlin