-
Notifications
You must be signed in to change notification settings - Fork 550
Description
Launching lib/main.dart on Android SDK built for x86 in debug mode...
/home/rootx/Desktop/flutter_linux_v1.7.8+hotfix.4-stable/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.2.2/android/src/main/java/vn/hunghd/flutterdownloader/FlutterDownloaderPlugin.java:106: error: cannot access FragmentActivity
if (activity instanceof FlutterActivity || activity instanceof FlutterFragmentActivity) {
^
class file for android.support.v4.app.FragmentActivity not found
/home/rootx/Desktop/flutter_linux_v1.7.8+hotfix.4-stable/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.2.2/android/src/main/java/vn/hunghd/flutterdownloader/FlutterDownloaderPlugin.java:124: error: incompatible types: Activity cannot be converted to FlutterFragmentActivity
if (activity instanceof FlutterActivity || activity instanceof FlutterFragmentActivity) {
^
2 errors
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':flutter_downloader:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
-
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. -
Get more help at https://help.gradle.org
BUILD FAILED in 1s
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)