Closed jaish702 closed 2 years ago
This is not a mistake. The Register function has not been removed to support older versions. Can you send a more detailed log?
in terminal and when however my app build and installed on emulator it's stop working and when I tried to close the app and reopen it .it's start doing crash and app get's close's.( it's simply mean's that the app is not working since it install on the Emulator). the package is working amazing yesterday but today not will. and one more thing this same thing is happening on ios also.
Please heed the warnings. It says clear cache. Please use the Flutter Clean command. Have a nice day. :)
IOS Emulator does not support it. It only supports Android Emulator. But make sure it works and try it on a real device.
import 'dart:io'; import 'package:ed_screen_recorder/ed_screen_recorder.dart'; import 'package:firebase_storage/firebase_storage.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart';
class Textspeech extends StatefulWidget { const Textspeech({super.key});
@override
State
class _TextspeechState extends State
Future
Future
@override void initState() { super.initState(); screenRecorder = EdScreenRecorder(); }
def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) } }
def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") }
def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' }
def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { flutterVersionName = '1.0' }
apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply plugin: 'com.google.gms.google-services'
android { compileSdkVersion 31
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.screenre123"
minSdkVersion 23
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter { source '../..' }
and one more thing is that when I had eyes on you code I found that you said in readme that implementation 'com.github.HBiSoft:HBRecorder:2.0.3' but you use implementation 'com.github.HBiSoft:HBRecorder:2.0.4' I am getting same problem from both.
Note: D:\src\flutter.pub-cache\hosted\pub.dartlang.org\ed_screen_recorder-0.0.11\android\src\main\java\com\ed_screen_recorder\ed_screen_recorder\EdScreenRecorderPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.