actions-on-google / actions-on-google-java

Java/Kotlin library for Actions on Google
Apache License 2.0
286 stars 39 forks source link

FATAL EXCEPTION: java.lang.AssertionError getResourceResolver after gradle and kotlin version updated in Android project #66

Open Moozart opened 2 years ago

Moozart commented 2 years ago

Hello, I have an exception that u can see log at the below.

I upgraded my project's gradle and kotlin version. After that I encountered with this exception after called "HomeGraphApiServiceGrpc.HomeGraphApiServiceFutureStub" reportStateAndNotification(...) called.

gradlew updated from 6.3-all.zip to 7.4-bin.zip kotlin version 1.5.10 to 1.7.20

gradle import:

    implementation ("com.google.actions:actions-on-google:1.8.0") {
        exclude group: 'io.grpc', module: 'grpc-netty-shaded'
    }

    def grpcVersion = '1.15.1'
    implementation "io.grpc:grpc-okhttp:${grpcVersion}"

    api 'com.google.guava:guava:30.1.1-android'

FATAL EXCEPTION: grpc-default-executor-0 Process: com.x.x, PID: 21525 java.lang.AssertionError at io.grpc.internal.DnsNameResolver.getResourceResolver(DnsNameResolver.java:577) at io.grpc.internal.DnsNameResolver.access$800(DnsNameResolver.java:61) at io.grpc.internal.DnsNameResolver$1.run(DnsNameResolver.java:233) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764)

Thanks for help