Skip to content

Issue while debugging. #62

@sreejagath

Description

@sreejagath

Issue shows,

[ +7 ms] e:
C:\Users\jagal\Documents\flutter.pub-cache\hosted\pub.dartlang.org\tflite_flutter_helper-0.3.1\android
src\main\kotlin\com\tfliteflutter\tflite_flutter_helper\TfliteFlutterHelperPlugin.kt: (143, 73): One
type argument expected for class Array
[ +85 ms] FAILURE: Build failed with an exception.
[ +2 ms] * What went wrong:
[ +1 ms] Execution failed for task ':tflite_flutter_helper:compileDebugKotlin'.
[ ] > Compilation error. See log for more details
[ +1 ms] * 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.


TfliterFlutterHelperPlugin.kt (143) :

override fun onRequestPermissionsResult(requestCode: Int, permissions: Array, grantResults: IntArray): Boolean {
when (requestCode) {
AUDIO_RECORD_PERMISSION_CODE -> {
if (grantResults != null) {
permissionToRecordAudio = grantResults.isNotEmpty() &&
grantResults[0] == PackageManager.PERMISSION_GRANTED
}
completeInitializeRecorder()
return true
}
}
return false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions