Closed SaarYogev closed 4 years ago
Oh yeah, Android Studio is dumb. At some point, I'll get around to reporting that bug. You have to use ./gradlew installDebug
.
Oh thanks, can't believe that's such an easy workaround 😅. Maybe it should be added to README.md#Environment setup then? If you don't have the time I can try and make the PR.
Well it's not a Robot Scouter bug though, Studio's broken. Lemme just file an issue.
Step 1: Describe your environment
Windows 10 64-bit Android Studio 4.0 Canary 9
Step 2: Describe the problem:
Whenever I try to build the app, I get the following exception:
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/DefaultLifecycleObserver$-CC;
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.lifecycle.DefaultLifecycleObserver$-CC"
...I'm building in debug mode, and also tried
isUseProguard=false
to make sure that's not the issue.When building, I also get the following warning:
The option setting 'android.enableR8=false' is deprecated.null
along with a few deprecated warnings (isConnected
,getExternalStoragePublicDirectory
, etc.) which I assume isn't special.I tried to use
gradle setup
,gradle presubmit
,and replacedgoogle-services.json
, as written inREADME.md#Environment setup
, that also didn't help.This bug prevents me from contributing in any way to the repository, as I can't check my code.
Here is the full debug log, in case it's needed: