I tried running my Flutter app on an emulator and it works just fine. Then after trying out the application a few times, I decided to create an .apk file out of the app, but when I tried to install it on my phone, it just outputs white screen and nothing else (usually when I ran it, it outputs the login screen). I also had my friend install the .apk file to his phone, but to no avail he also reported a white screen and nothing else.
Then I tried another method of loading the app by running the application on my phone, instead of building the .apk file and installing it manually on my phone. To my surprise it works perfectly if I were to run the application from the Android Studio IDE directly onto my phone.
Can somebody point out to me what am I missing here? Am I supposed to change something in my build.gradle file before compiling it into an .apk file? Let me know if you have any ideas!
Thanks!
Are you using Firebase or other packages?
If yes, you can probably having error when use a release mode app. And to fix it, we need to know what packages you are using.
If not, please follow this issue https://github.com/flutter/flutter/issues/70558
Related
I'm using Android Studio 3.5 and can't install an app from it.
My app is already on play store and I'm upgrading the app.
It keeps saying there's a same application.
Okay, so I deleted it, but it keeps saying that.
First a pop-up window saying that I will have to uninstall the existing application. I know why it happens. I develop on my laptop and my desktop at the same time so it happens all the time. And this app doesn't have my data so I've clicked okay and proceeded and there was no problem. But,
The device already has an application with the same package but a different signature.
Retry
The application could not be installed: INSTALL_FAILED_UPDATE_INCOMPATIBLE
in new. And even I don't have the app, why does it say like that???
And installation is way too quick on play store.
I think the app isn't deleted properly.
So basically, I have no app on the phone, the data, cache, apk, anything, but it keeps saying there is a same app with a different signature.
I have
Deleted the existing app and it still didn't work
Re-downloaded the app and ran and didn't work
And as expected, it says if I wanna delete it, pushed OK. And the app is
automatically deleted.
also adb uninstall com.~~.~~ not working
Set debuggable true, still not working
Ran on a friend's phone which already has the exact same app from the store
and it works.
Tried to disable instant run but android studio 3.5 does not have that anymore.
Rebooted my phone.
Deleted caches of android studio and restarted it, as many as I could.
adb shell pm list packages -f : the package does not exist.
done adb uninstall com.~~.~~ and got Success code, but still not working
There's nothing wrong with codes.
Build works perfect. It runs perfectly on my friend's phone.
I expect for the app to run perfectly but,
the studio says
The device already has an application with the same package but a different signature.
Retry
The application could not be installed: INSTALL_FAILED_UPDATE_INCOMPATIBLE
Also, installation is too slow. It wasn't slow like this.
this happen when you have multiple spaces or user in single phone, it will be helpful if you can tell about your phone model
So i'm gonna be as elaborative as much as I could..
I have a Xperia L with latest firmware and I was trying to set some third party apps to system apps, and I succeeded after some time I thought that if I could set App updates to system app (meaning removing the older version) and I succeeded again but when I was doing the same to Chrome I stumbled upon to a problem..
So before I tell you what was the problem i'll tell you how I did it..
1.I updated Chrome.
2.I moved the original. apk from "system/app" dir to My SD so that it can be changed to new one. (My set is ROOTED)
3.Then I moved the. apk from "Data/app" folder to "system/app" folder.
4.And renamed it to the Original. apk 's name.
5. And changed the Read/Write Permissions as it should be.
6.That's that.
So after that I tried launching chrome but it said
"Chrome failed to start due to an Unexpected Error"
but with above methods I replaced a lot of apps like Walkman, Calendar, PlayStore, Play Services and some i don't remember...
and they all worked fine even after restarting it..
so then I uninstalled Chrome with Titanium Backup since it was a system app..
and then I tried the same with Album app.
I replaced it's. apk and tried it but it started crashing.. so I deleted it. too and placed the original one back..
and restarted my set..
But now it is stuck on Black Screen after Sony logo...
I know I can Flash the ROM to get going but if there's any other way to do so please let me know..
now i know it's kinda two questions in one but I really need to know both..
Thanks in advance...
You can use Link2SD or other root apps to add them automatically to the system image
I am a .net developer but new to android programming. I have used basic for android and set to compile & run project into my LG device. Everything is good but my question is when I compile and run, everything is done?
Can I use the exported application file in the project folder in any device? I wrote a app and send it to my other galaxy phone, it worked! But when starting app, it works but first showing message: "Waiting for IDEdebugger to connect", what is this?
thanks for your help.
Before you package your application in b4a for other users or uploading to store, you have to change the compilation mode from debug to release or release(obfuscated).
If you compile in debug mode, that is when if you share the application to different users, it will always launch with the information waiting for ide debugger.
The app will work upon the platform which you choosed when you started your project. See what platform you choosed I remember there are Android , android icecream sandwich ..etc
So upon your choice you can know what devices you app will work but take care about the screen dimensions variations because this may cause problems in the way of the design is displayed so you should create scale just to be safe.
To get rid of that error you should uncheck Project->Attach Debugger. Also the file you will upload to Google Play Store or other places will be a .apk file in your objects subfolder. Basically you will need to either setup the Galaxy phone like your LG device or change the project to release and copy the .apk file onto your SD card and manually install it. For more information on your error a quick Google search led to a forum post on Basic 4 Android's forum. The link to that post is http://www.basic4ppc.com/android/forum/threads/waiting-for-ide-debugger-to-connect.13813/
I'm trying to use Genymotion virtual machine in Eclipse. I installed several virtual machines, but I'm having problems when I want to see changes made on my app. Every time I add something new to my app, is not showing it up on the emulator. Does anybody know how "refresh" the Genymotion emulator so I can show the changes made in the app?
Thanks
If your problem is coming from the XML resources it could be caused by a refresh that is not done on the Eclipse side. I had this problem a very long time ago. I had to uninstall the app before installing it again.
You can try different manipulations, one of them should solve your problem:
First, check that your new APK is correctly transfered and installed on the device. Look at the console output for that.
Or, change a character on a JAVA file and save, before building your app
You can also clean your project before running your app
And finally, uninstall your app before installing it
I am a new programmer for Android, but I have been using eclipse for a year and a half now. I am developing an Android Application for my school's health department to allow students to track certain health behaviors overtime.
I have completed the coding of the app and have successfully tested it on a virtual device. The applications runs fine on the AVD.
However, the problem arises when I export the project as an Android application through eclipse. I create the apk file using the debug.keystore and the androiddebugkey. I create the apk file (which is about 115 kilobytes). Next, I connect by phone (an LG Thrill) and open it via My Computer. I drag and drop the apk file into the "downloads" folder in the phone.
I use a Market App called ASTRO to access the apk file in the downloads folder. However, when I try to install it, I get the dreaded "There is a problem parsing the package" error. I have had this problem for weeks now.
I have tried all sorts of solutions. I have developed the app for the same Android level as the phone. I have tried making my own keystore and exporting. I have also tried making smaller apps (ie: HelloWorld) and installing them. I keep getting the same error.
One thing that I noticed was that whenever I go to the apk file in the ASTRO Market app and click on the apk file and then "Open App Manager", I see that none of the apk file's settings (ie: Name, Size, details) are shown. All the Marketplace apps I have in the folder have visible settings by my apps don't.
What might I be doing wrong? Is it something with building the apk file? Or am I uploading it onto my phone incorrectly? Whatever it is, please let me know.
Go to: Settings->Security->Device Administration and make sure you have Unknown Sources enabled.
Have you checked your manifest file? What is the required minimum version of Android that you need, and what is the version on the device you are installing it on? Everytime I have run into this problem, it is because the device has less than the minimum required version of the operating system on it.
Home-->Settings-->Application Settings-->Unknown Sources Click Checkbox on
I know it's kinda old topic but it has just happened to me (Android 4.1.1).
Solution: If you have wifi turned on, make sure you have internet access. I dealt with this problem and multiply requests to install application appeared.