hiennguyen92 / flutter_callkit_incoming

Flutter Callkit Incoming
https://pub.dev/packages/flutter_callkit_incoming
MIT License
180 stars 312 forks source link

Android Build failure with v2.0.4 #518

Open sagar1garg opened 7 months ago

sagar1garg commented 7 months ago

@hiennguyen92 Build failing with the latest version. Tried invalidating cache and flutter pub cache clean but this keeps popping. Had to revert to v2.0.3.

Running Gradle task 'assembleDebug'...
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/CallkitNotificationManager.kt:401:31 Unresolved reference: CallkitIncomingActivity
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/CallkitNotificationManager.kt:479:33 Unresolved reference: TransparentActivity
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/CallkitNotificationManager.kt:488:29 Unresolved reference: CallkitIncomingBroadcastReceiver
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/CallkitNotificationManager.kt:493:29 Unresolved reference: CallkitIncomingBroadcastReceiver
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/CallkitNotificationManager.kt:498:33 Unresolved reference: TransparentActivity
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/CallkitNotificationManager.kt:507:22 Unresolved reference: CallkitIncomingActivity
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/FlutterCallkitIncomingPlugin.kt:98:17 Unresolved reference: CallkitIncomingBroadcastReceiver
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/FlutterCallkitIncomingPlugin.kt:111:17 Unresolved reference: CallkitIncomingBroadcastReceiver
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/FlutterCallkitIncomingPlugin.kt:120:17 Unresolved reference: CallkitIncomingBroadcastReceiver
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/FlutterCallkitIncomingPlugin.kt:131:21 Unresolved reference: CallkitIncomingBroadcastReceiver
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/FlutterCallkitIncomingPlugin.kt:154:29 Unresolved reference: CallkitIncomingBroadcastReceiver
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/FlutterCallkitIncomingPlugin.kt:180:29 Unresolved reference: CallkitIncomingBroadcastReceiver
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/FlutterCallkitIncomingPlugin.kt:220:29 Unresolved reference: CallkitIncomingBroadcastReceiver
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/FlutterCallkitIncomingPlugin.kt:238:37 Unresolved reference: CallkitIncomingBroadcastReceiver
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/FlutterCallkitIncomingPlugin.kt:245:37 Unresolved reference: CallkitIncomingBroadcastReceiver
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/FlutterCallkitIncomingPlugin.kt:266:21 Unresolved reference: CallkitIncomingBroadcastReceiver
e: file:///Users/sagar/.pub-cache/hosted/pub.dev/flutter_callkit_incoming-2.0.4/android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/FlutterCallkitIncomingPlugin.kt:266:54 Variable expected

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_callkit_incoming:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 38s
Error: Gradle task assembleDebug failed with exit code 1
KamalPixi commented 7 months ago

Same here, Any solution guys?

sagar1garg commented 7 months ago

@hiennguyen92 any update on this ??

TinhHuynh commented 7 months ago

@sagar1garg @KamalPixi I run flutter clean and then flutter pub get, and the app can be built successfully. Please try if this works for you.

sagar1garg commented 7 months ago

@TinhHuynh it worked thanks. If you can let us know about your plans for locked screen callbacks it will be really helpful

TinhHuynh commented 7 months ago

@sagar1garg Hi, I am not the library maintainer :)