tflite_flutter_helper icon indicating copy to clipboard operation
tflite_flutter_helper copied to clipboard

Issue while debugging.

Open sreejagath opened this issue 3 years ago • 0 comments

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<T> [ +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 }

sreejagath avatar Jun 27 '22 08:06 sreejagath