Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kedar-27 opened this issue Apr 15, 2021 · 1 comment
Open

Comments

@Kedar-27
Copy link

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

@VladKhramykh
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants