Android .apk built from Unity3D 'App not installed' error on device - android

I searched around a lot before asking, on this website and others, I've found a lot of advice but I either can't fully understand it, or I'm implementing it wrong.
I build my .apk from Unity3D, and then I put that on Google Drive and using ASTRO File Manager on my Galaxy Tab 2 10.1 (GT-P5110) I launch it and install it, it says 'installing' for a short amount of time and then it just tells me 'App not installed'.
Most of what I've read is telling me that it wont work if it's an unsigned build, but to start with I was using the debug option in Unity's Publishing Settings, and now I've generated a new keystore, rebuilt it, got it back over on the device and the same thing is still happening.
Am I missing some critical concept or step here? I'm brand new to Android development and it's taken me a while to get to this stage, so if there's something I'm missing that is glaringly obvious then please help me out!
Thanks in anticipation!

SOLVED: Followed the instructions here, and it fixed my problem! Hope this helps someone else!
http://forum.unity3d.com/threads/210920-Failure-INSTALL_FAILED_CONTAINER_ERROR
The Solution in this is following:
Go to "Player Settings", click Android Tab
Under Other Settings/Configuation/Install Location, set to "Automatic".

Related

App isn't installed on your device error in very first program

There seem to be too many bugs which have not been properly documented, regarding android studio. I am trying to run a basic Hello world app, and this error is truly making me give up any more efforts.
What I did:
Open Android studio(also tried running as administrator) and tried to run the default Hello world app on an Android 10 device(Xiaomi). At the start it shows Failed to start monitoring 7D8XXCOJGQQCZLJV(device number). At first I ignored it being a beginner and clicked on the run button. The file was successfully built and the RUN section shows 'Install successfully finished'.
Now for clarity here are some screenshots that will display what happened on my android device after the above steps:
The app seemed to be installed correctly, but whenever I click on the app logo the response I get is really frustrating:
As per the this link I tried to go to the device manager and do some changes, by setting and enabling Xiaomi drivers for Portable devices.
But then windows shows:
If anybody knows how to solve this, please do help me in doing so. It is quite discouraging to experience so many errors, right at the beginning. If somebody could give a working solution then that would really help me in continuing my android journey.
There was just a tiny error that led to this entire problem. This was because I had set the value of android:exported="false" in the main activity, which had to be set to true. Hope that this may help anybody in the future!
set the value of android:exported="true" in the AndroidManifest

Unable to serialize DslActivationStatus state...Android Studio

If this is a stupid question because I made some terrible mistake, please let me know. Anyways, I just encountered the error and after searching on internet for quite some time, the only similar error that I could find was here But my situation was different.
1). I tried to create a new project from File menu of a previous project.
2). I clicked on Basic Activity and selected mininimum supported API to be 19.
3). I was following this tutorial by Google Developers.
4). I was previously able to successfully build and run from Empty Templates, but now, even they show this same error.
Here are two screenshots: Error & Window
I have tried to restart computer. I have NOT yet tried to download and re-install Android Studio yet. I do not know of any good troubleshooting besides restarting computer; so, if someone wants to share some tips, please be kind enough to do it.
I have not edited or tried to do anything in the automatically created project. I have not editted any file, until I noticed that even #color/primaryColor could not be resolved. So, I went on to look into the res/values/color file and found out that it had no color values in it, instead there was a single line: androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-au. So, I checked further, and found out that many of the automatically generated files had several errors in them.
I am on a Windows 10 machine. Please help, if this question needs to be edited, please let me know. Thanks a lot in advance.

Generation of signed Apk

I am creating signed apk for my app and it taking like 1 hour and the process of "Gradle building"is still going on. Is it normal or something wrong is hepping and no error is shown here ?
As it is my first app so i don't know.
Give me some suggestion about it.
First, check the specification of your computer, as the official site said:
you need >=3GB RAM, In my personal experince, I recommend that you use >= 8GB RAM; also, if you has SSD, the android studio will be faster.
So, check your computer, if you don't have enough memory, update your computer
Second, maybe there is a bug in your program, sometimes, android studio will execute very long time due to a bug. => maybe you should check if there is anything wrong in your program before you click build.
Hope this post help you!!
reference:
1. https://developer.android.com/studio/index.html

Show "All Instances" missing in eclipse debug view

few days ago, when I was debugging an Android project under eclipse I've found some great functionality: "All instances..." and "Instance count". I wanted to share my findings with rest of my colleagues, but none of them had this functionality in their eclipse install (we all use eclipse 3.7).
What's even more weird now I'm also missing this functionality.
As far as I can tell this functionality is build within eclipse from version 3.3 and available to projects using Java 1.6 and above as mentioned here and here (we're using 1.6).
See bottom of this link to see what functionality I'm talking about. It even has it's own shortcut in options (ctrl+shift+n) so I think there must be a way to use it again.
I was looking for it while debugging and while the debugger was in "stopped" state.
Anyone can help me put eclipse in right view/perspective/state to see this functionality again?
EDIT
Here is the documentation entry from eclipse help page: link
Thanks for any suggestions,
kajman
After some more digging I came to following conclusion:
DalvikVM does not support "instance retrieval".
On eclipse help page mentioned in EDIT section it written:
This command is only available if the Java virtual machine you are currently using supports instance retrieval.
Maybe there is an option to enable this option in DalvikVM, but I doubt it unfortunately.
Also when debugging on phone "Drop to frame" functionality is missing.

I have enough memory but am getting the INSTALL_FAILED_INSUFFICIENT_STORAGE error

I am working on a game in eclipse. I connect my android phone to test my game application. Upon pressing "RUN" in eclipse, the game will begin to be uploaded to my device. However, it onl makes it half way then the console in eclipse gives me this error: INSTALL_FAILED_INSUFFICIENT_STORAGE. I checked my internal storage and I have 30mb left. My game is 3.20mb. I should have plenty of room. shouldn't I? Is this just a bug?
ps. This is very frustrating to me. I go to google developer forums and they tell me that if I am a neebie, to post on stackoverflow. I post on stackoverflow only to find they migrate me to SuperUser. Then SuperUser says, you were supposed to post on Android Enthusiast (beta), and migrate me there. Finally, I just looked, and someone posted that my question belongs on STACKOVERFLOW!!! Now I am back where I started. I am just trying to get some answers. Could someone please help me instead of migrating me please?
My application had a special german character in it,
like
"ö,ä,ü ... ß" .... (it was ö), prohibited adb to deploy the apk file no the device.
-> resulted in this error message...
so check your project name.
good luck!

Categories

Resources