0maru / twitter_login

MIT License
54 stars 54 forks source link

Build Error on Android build #1

Closed PistolStarKei closed 4 years ago

PistolStarKei commented 4 years ago

e: /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/twitter_login-0.0.1/android/src/main/kotlin/com/maru/twitter_login/TwitterLoginPlugin.kt: (3, 28): Conflicting import, imported name 'NonNull' is ambiguous e: /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/twitter_login-0.0.1/android/src/main/kotlin/com/maru/twitter_login/TwitterLoginPlugin.kt: (5, 28): Conflicting import, imported name 'NonNull' is ambiguous e: /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/twitter_login-0.0.1/android/src/main/kotlin/com/maru/twitter_login/TwitterLoginPlugin.kt: (75, 3): 'onNewIntent' overrides nothing e: /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/twitter_login-0.0.1/android/src/main/kotlin/com/maru/twitter_login/TwitterLoginPlugin.kt: (94, 3): 'onAttachedToActivity' overrides nothing e: /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/twitter_login-0.0.1/android/src/main/kotlin/com/maru/twitter_login/TwitterLoginPlugin.kt: (96, 36): Type mismatch: inferred type is TwitterLoginPlugin but PluginRegistry.NewIntentListener was expected e: /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/twitter_login-0.0.1/android/src/main/kotlin/com/maru/twitter_login/TwitterLoginPlugin.kt: (99, 3): 'onDetachedFromActivity' overrides nothing e: /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/twitter_login-0.0.1/android/src/main/kotlin/com/maru/twitter_login/TwitterLoginPlugin.kt: (100, 54): Type mismatch: inferred type is TwitterLoginPlugin but PluginRegistry.NewIntentListener was expected e: /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/twitter_login-0.0.1/android/src/main/kotlin/com/maru/twitter_login/TwitterLoginPlugin.kt: (104, 3): 'onDetachedFromActivityForConfigChanges' overrides nothing e: /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/twitter_login-0.0.1/android/src/main/kotlin/com/maru/twitter_login/TwitterLoginPlugin.kt: (105, 54): Type mismatch: inferred type is TwitterLoginPlugin but PluginRegistry.NewIntentListener was expected e: /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/twitter_login-0.0.1/android/src/main/kotlin/com/maru/twitter_login/TwitterLoginPlugin.kt: (109, 3): 'onReattachedToActivityForConfigChanges' overrides nothing e: /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/twitter_login-0.0.1/android/src/main/kotlin/com/maru/twitter_login/TwitterLoginPlugin.kt: (111, 36): Type mismatch: inferred type is TwitterLoginPlugin but PluginRegistry.NewIntentListener was expected

FAILURE: Build failed with an exception.

BUILD FAILED in 11s Exception: Gradle task assembleDebug failed with exit code 1

0maru commented 4 years ago

Sorry for the inconvenience, I fixed the bug. Thank you for opening the first issue :)