illegalargumentexception

Circular Reference with Nested Nav Graphs

前提是你 提交于 2021-01-27 05:40:56
问题 I have a complex navigation structure, I go from one nav graph then based on some logic, decide which nav graph to go to there. However both the nav graphs share 3 other nav graphs. See image below Currently I get a circular reference error if I try to include each nav graph in the A & B. I have also tried creating a global action, which leads to illegal argument exception since it doesn't exist on the nav graph. Please help!!! 来源: https://stackoverflow.com/questions/61083805/circular

Kotlin - IllegalArgumentException in overridden method

不羁的心 提交于 2021-01-02 05:20:41
问题 In Kotlin I'm overriding this two Google Sign-In functions: override fun onConnectionFailed(result: ConnectionResult) { if (result.hasResolution()) { try { result.startResolutionForResult(this, RESOLVE_CONNECTION_REQUEST_CODE) } catch (e: IntentSender.SendIntentException) { // Unable to resolve, message user appropriately } } else { val gaa = GoogleApiAvailability.getInstance() gaa.getErrorDialog(this, result.errorCode, 0) } } override fun onActivityResult(requestCode: Int, resultCode: Int,

Kotlin - IllegalArgumentException in overridden method

这一生的挚爱 提交于 2021-01-02 05:20:16
问题 In Kotlin I'm overriding this two Google Sign-In functions: override fun onConnectionFailed(result: ConnectionResult) { if (result.hasResolution()) { try { result.startResolutionForResult(this, RESOLVE_CONNECTION_REQUEST_CODE) } catch (e: IntentSender.SendIntentException) { // Unable to resolve, message user appropriately } } else { val gaa = GoogleApiAvailability.getInstance() gaa.getErrorDialog(this, result.errorCode, 0) } } override fun onActivityResult(requestCode: Int, resultCode: Int,