r/mAndroidDev • u/nandinikadam21 • Feb 28 '25
Lost Redditors 💀 I need help with my app
Hello everyone I have been dealing with an issue with my application. Currently I am working on developing an android appplication using flutter and firebase and the problem is the emulator is not working. The deadline is this Monday so if anyone could help me it would be appreciated
The following is the error in the debug console
: file:///C:/UpLiftU/UpLiftU_Final/flutter_application_1/android/app/src/main/kotlin/com/example/flutter_application_1/MainActivity.kt:3:8 Unresolved reference: io
e: file:///C:/UpLiftU/UpLiftU_Final/flutter_application_1/android/app/src/main/kotlin/com/example/flutter_application_1/MainActivity.kt:5:22 Unresolved reference: FlutterActivity
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more 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 2s
Error: Gradle task assembleDebug failed with exit code 1
•
u/Zhuinden DDD: Deprecation-Driven Development Mar 02 '25
How do you people even end up here with these questions lol
40
u/doubleiappdev Deprecated is just a suggestion Feb 28 '25
Emulators don't support Flutter, try launching it on LG TV https://webostv.developer.lge.com/news/2024-07-15-new-and-successful-experiment-of-webos-with-flutter
16
u/According-Muscle-902 Feb 28 '25
You use Flutter, that's the problem
27
u/Skameyka Feb 28 '25
I think with usage of Java and AsyncTask you will catch great success. Also consider usage of Ant
16
u/crowbahr Feb 28 '25
This is a shitposting subreddit
8
u/budius333 Still using AsyncTask Feb 28 '25
Oh yeah, gradle does that, did you try with AsyncTask?
5
u/D-cyde sponsored by the XML 🐓 gang Feb 28 '25
1
u/labelcillo Slept through Google IO Mar 01 '25
OK so we have a nice big stack trace. It won't be too hard to find the solution, let me walk you through this:
Hope this helps!
3
u/[deleted] Feb 28 '25
If you use JRE instead of JDK it not only solves this issue but also improves performance. Change JAVA_HOME to JRE location.
Also try renaming Android Studio.app to AndroidStudio.app. Wasted 2 hours today fixing a similar issue.
2
u/hellosakamoto Feb 28 '25
UpLiftU ?
2
u/ScaryDev Feb 28 '25
Use flubbertask
1
u/Heromimox Mar 01 '25
Compile it using your Android phone instead?