Flutter app stuck at installing with white screen - android

My flutter app is always getting stuck in installing when I run on my device Lenovo L18021, app is launched with the white screen and it is not moving past that, I am not running a custom app, I am just running the demo app comes as default, I tried changing package name of the app and used flutter clean multiple times, I used File->Invalidate cache and Restart option multiple times in android studio, I found that I am receiving an untrusted app message in the logcat, I do not know if that is the issue, I also increased the buffer size on my device, and the app is launching fine in the web and from my android studio the native android apps are launching on that device correctly, only the flutter apps are not launching, that too while launching from the android studio only. If I opened the installed app in my phone later the app is running correctly, I even did a factory reset on my device then tried to run the app from android studio, still it is not working, "flutter doctor -v" is not showing any errors, I have been stuck with this issue for the past two weeks kindly help me to resolve this issue ?
My screenshots
launch screen
Flutter doctor -v
Logcat
Device screenshot

Didn’t you accidentally create two different MainActivity files, with different project name. If so delete one.
android/app/src/main/kotlin/com/YOUR_PROJECT/MainActivity.kt

Related

android studio emulator won't start/show up

I'm new to Android/Kotlin programming (not to programming in general) and I'm following the Kotlin Basics course on developer.android.com.
The very first lesson after having installed Android Studio is to create a Virtual Device and run an extremely basic app on it.
However I can't get the emulator to work. The very first time I tried, it opened a small window with a progress bar but it became unresponsive at around 1/4 progress and I had to eventually kill it.
Since then it just won't start/open.
After I click run, the code compiles and the Event Log within Android Studio says Executing tasks[...] then Gradle build finished[...] and that's it. Nothing happens beyond that and the Emulator window says "No emulators are currently running".
However:
Some emulator-related processes have been started. Those processes stay alive even after closing Android Studio..
If I try to start the AVD from within the device manager, I get an error message that the device is already running
I am unable to delete these .lock files without killing the aforementioned processes
What I could find:
The Windows Event Viewer shows an Application Error
The Android Studio log file also shows an Error
I don't know what to do with either of these messages, though
What I tried
Killing the emulator processes, removing the *.lock files and trying again.
Creating a different AVD (different device, different version of Android)
Completely reinstalling Android Studio and the SDK following the accepted answer to this question: How to completely uninstall Android Studio from windows(v10)?.
None of this had any effect.
I'm running Android Studio Arctic Fox (2020.3.1 Patch 4) on Windows 10 Pro (10.0.19042 Build 19042).
I am able to run the app on my actual phone but down the line I would like to be able to test apps on different types of devices or without having to always use my physical one.
All help would be greatly appreciated.
By running and emulator.exe command in a command prompt, I was able to see yet another error message, the same one as in this post: emulator: incompatible HAX module version 3 requirs minimum version 4, and the answer to that post from user Harold Sota (as well as the comment under it from Harun, more specific to my situation) solved the issue.

Android Studio no connected device problem

I have a freshly installed android studio on my PC for flutter development, but I am facing this issue.
As seen in the photo the virtual device shows up.
https://drive.google.com/open?id=1mcGs0qxKVZafD4j0J02n44n-3fbu1iHR
but it shows loading in the android studio toolbar.
https://drive.google.com/open?id=1yJ18a7DL4Livfc31pKryXrRJCUjkO1hW
when I try to run the application this message shows up
https://drive.google.com/open?id=18cWfhtbh4M9Nkn8KQAaRRSvLi8R0DPMR
but when I run "flutter doctor" everything seems to be fine.
https://drive.google.com/open?id=1E6MoIvWEnwFjOl-E_gjYQAjxJSlvs6fz
though if try to run it using "flutter run" nothing happens it just gets stuck on "running gradle task"
https://drive.google.com/open?id=1f6D1V63c06uu6LyY077zP6DLkEkggnTN
for android device, I solved it using this :
flutter config --android-sdk /path/to/android/sdk
not sure if it'll work with iOS devices as well.
Please check your studio is loading current active device.
On top there are four option:
1) One is for on which active device you want to run apk(phone icon available).
2) Second is represent starting point of app(flutter logo icon).
3) Total device available.
4) last on run app
so please check first option where studio find active device.

Ionic 4 - install run performed a full build and install since the installation on device does not match the local build on disk

Im trying to generate an APK to test my android build, it used to work before, i dont know what went wrong that it stopped working, whenever i try to run on device either on android studio or my own device, it does not build even though its error clean. App actually installs, but when its about to run it closes down and this message appears
Heres what i got from checking the logcat on Android Studio: https://imgur.com/a/FdE4WMo
Try uninstalling the app from the device and then run it again.
The dev / debug build uses an encryption key that's specific to the machine so I think that maybe you are trying to install a different app over the original one?

Android Studio not deploying latest builds of my app

I am using Android Studio-1.0.1 with Genymotion virtual device emulator for app development.Of late,studio has started behaving erratically.
Whenever I make some changes in the layout or the java class files and deploy the application,it does not reflect the changes that I made.
I already tried to:
1.make/clean/build app
2.Uninstalled the app several times from the emulato
3.cleared genymotion cache,invalidated studio cache,and even deleted the build folder of my app to remove old builds,
but it still does not help.
Is there anything else that I can do to solve this problem,and what is its possible cause in the first place?

Phonegap Build in Dreamweaver CS6 - old project runs in emulator instead of current one

I created four or five little test Android apps in Dreamweaver CS6 using PhoneGap Build. Each time, the current app would run in the emulator. Now, instead of running the project in the current site, the emulator64-arm keeps running a previous project when I click the PhoneGap Build icon on the Android emulator home screen. I have tried deleting all my projects from build.phonegap.com, and deleting all but the most recent project from the local drive. Even so, the emulator runs the old project -- which as far as I know, doesn't even exist anymore, either locally or on build.phonegap.com! Do I need to delete the project from the emulator? If so, how would I do that? Any help will be greatly appreciated, cause I'm stumped!
Mac OS X 10.6.8
Mystery solved. The first few times I installed apps on the emulator, I clicked the PhoneGap Build icon to run them. But later appps installed under different names -- I guess based on info I entered into the config.xml file.
Still would be nice to know how to delete those apps from the emulator. But at least the really mysterious part is explained -- why it ran a different app from the one I just built. I was just clicking on the wrong icon.

Categories

Resources