android / platform-samples

A collection of samples of different Android OS platform APIs.
https://developer.android.com/about
Apache License 2.0
1.16k stars 251 forks source link

Update Github actions to fix builds #185

Closed calren closed 4 months ago

calren commented 4 months ago
calren commented 4 months ago

Once this PR is merged, builds should start passing again once https://github.com/android/platform-samples/issues/187 is fixed cc @MayuriKhinvasara

calren commented 4 months ago

Not sure why api 30 tests always fail with this error

com.example.platform.app.NavigationTest > testSamplesOpen[emulator-5554 - 11] FAILED 
    java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/OnReceiveContentListener;
    at java.lang.reflect.Constructor.newInstance0(Native Method)
Tests on emulator-5554 - 11 failed: There was 1 failure(s).
Test run failed to complete. Instrumentation run failed due to Process crashed.
Logcat of last crash: 
Process: com.example.platform.app, PID: 2437
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/OnReceiveContentListener;
    at java.lang.reflect.Constructor.newInstance0(Native Method)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:343)

looking into this

calren commented 4 months ago

In the interest of getting builds to start passing again, I'm going to remove testing api 30 for now so we can merge this.

Will follow up with another PR to enable api 30 for androidTest: https://github.com/android/platform-samples/issues/188