flutter_rtmppublisher icon indicating copy to clipboard operation
flutter_rtmppublisher copied to clipboard

Type mismatch: inferred type is ByteBuffer? but ByteBuffer was expected

Open Kedar-27 opened this issue 3 years ago • 1 comments

Note: Recompile with -Xlint:deprecation for details.
e: /Users/kedar/.pub-cache/hosted/pub.dartlang.org/camera_with_rtmp-0.3.2/android/src/main/kotlin/com/whelksoft/camera_with_rtmp/Camera.kt: (682, 45): Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected e: /Users/kedar/.pub-cache/hosted/pub.dartlang.org/camera_with_rtmp-0.3.2/android/src/main/kotlin/com/whelksoft/camera_with_rtmp/CameraUtils.kt: (51, 13): Type inference failed: Cannot infer type parameter V in inline operator fun <K, V> MutableMap<K, V>.set(key: K, value: V): Unit None of the following substitutions
receiver: MutableMap<String, Any> arguments: (String,Any)
receiver: MutableMap<String, Int?> arguments: (String,Int?)
can be applied to
receiver: HashMap<String, Any> arguments: (String,Int?)

e: /Users/kedar/.pub-cache/hosted/pub.dartlang.org/camera_with_rtmp-0.3.2/android/src/main/kotlin/com/whelksoft/camera_with_rtmp/VideoEncoder.kt: (218, 59): Type mismatch: inferred type is ByteBuffer? but ByteBuffer was expected e: /Users/kedar/.pub-cache/hosted/pub.dartlang.org/camera_with_rtmp-0.3.2/android/src/main/kotlin/com/whelksoft/camera_with_rtmp/VideoEncoder.kt: (427, 23): Type mismatch: inferred type is ByteBuffer? but ByteBuffer was expected

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':camera_with_rtmp:compileReleaseKotlin'.

Compilation error. See log for more details

Kedar-27 avatar Apr 15 '21 13:04 Kedar-27

+1

VladKhramykh avatar Apr 21 '21 12:04 VladKhramykh