Eclipse fails compiling apk - android

Im new to android.
I have been writing my first app, I testing it about 2 weeks now.
Everything is went good, when today my apk doesnt want to be installed on my Phone.
So the followings happen:
I use eclipse.
I export the app with the right way:
Android Tools -> Export Signed Application -> bablabla I got a key and everything so..
The Emulator runs it perfectly, but when I try to install it on my phone, its icon not showing as an android application, its like 3 blank pages, so it shows as an "unknow" file format, and when i try to install, error message appears: "No applications can perform this action"
It seems like Eclipse didnt build my project as an .apk file.
Can somebody helps me?
What changed? Before this I could ran my apks on my Phone.
(Samsung Galaxy S, but I dont think its really matter, I guess it will be an Eclipse thingee)

Check out this documentation: debbuging android app on device
It looks rather like problem with manifest file, but I think You can run Your app by description from the link.

Related

How to fix "App not installed" - Xamarin app distribution

I used Microsoft's "Preparing an Application for Release" and "Signing the Android Application Package" tutorials in order to run an APK of an app I built on my Samsung Galaxy S8 phone.
When I try to run the APK, I am getting a message "Do you want to install an update to this existing application?...", and when tap "install", it shows an "installing" screen, and after couple of seconds I am getting a message "App not installed".
I have done these steps couple of times, each time I got the same result.
Did it happen to anyone?
Is there a way to know for 100% what causes this problem? There is not error code and it leaves me hanging.
I would like to thank #Blu and #Cheesebaron for their guidance.
OK, so after trying to understand where my error was (a lot of ctrl+f's), I had:
"failure copying native libraries error code=-113".
This means I had to my app.Android in Solution Explorer -> Properties -> Android Options -> Advanced -> unchecked all except the last one, then unchecked it, and it checked right back what was needed for it to work.
Then it didn't work AGAIN.
So I looked up again in logcat (after trying to install again, so that I will see the new error), and I found this:
"signatures do not match previously installed version; ignoring!".
I went to Settings -> Apps -> searched my app by its name -> Uninstalled.
Then I tried installing again, and it worked!
BTW, for the sake of other people - How to use logcat? (generally! you may experience some issues, google it and you'll do fine):
Connect your phone to your computer.
go into: c:\Users\YOURUSERNAME\AppData\Local\Android\Sdk\platform-tools
type "adb logcat".

Xamarin doesn't deploy to real Android device

I have a really weird problem, I created an Android project, it worked perfectly and deployed to my real device, but after deleting that project in my computer and then download it from tfs, it builds correctly and deploy to emulator, but in the emulator after some time running and self-closing it's gonna work, but when I deploy it to my real device, it says deploy succeeded but it doesn't really deployed! I don't know why! if I create a new project it work perfectly, this issue happens only when I retrieve my project from tfs!
I found it, I install a copy that previously kept on my device and then uninstall it, then the deployment gonna work perfectly.
Further if you want to uninstall it, uninstall it for all users.

Android Studio signed app won't install on device - "Unfortunately, Package installer has stopped"

I've been trying to solve this problem for about 5 days.
I've created an app for my work place in Android Studio, and it works fine when I run it in debug mode with the ADB. But when I generate the signed apk and try to install it on my device (Samsung Galaxy S6, Marshmallow 6.0.1) it always shows "Unfortunatelly, Package installer has stopped".
I have already changed the Build Variant to "release", and checked the password for the key store several times, also uninstalled the previous app and looked for remaining data like in other questions tell you to fix this problem. I think the problem is not there.
This code is in my build.grade :
Code Pic
I've tried the same with other apps I have created along with the Udacity Beginners Course (I'm kind of new in Android developing) and they work just fine when I create and install the signed .apk.
Also, I noticed that inside my phone there are folders of every app installed, inside Android -> data; here I can find the folders for the apps form the Beginners Course, but even if I run the one I'm developing with the ADB, the folder doesn't appear. Is this normal?
Hope someone can help me!
EDIT -
I think I found the problem with your help, but I still don't know how to fix it. This is what appears in the Android Monitor.
Android Monitor Picture
Thanks again for your help!

old apk file only run on android emulator always

I have created one android application.
i have to run the app which means it is worked well on android emulator and device.
Afterthat i have to change some layout height and weight(some design changes).Now i have to run these updated apk file which means the old layout design only work on android emulator...why the old apk design is working on android emulator...i wish to work the new apk file on android emulator...
how can i resolve these error ??? please help me ...
i have done a simple thing that solve my problem whenever i get this kind of chaos !
1. Open Your emulator
2. Goto Setting>manage app or apps(ver 4.1)>your app
3. now uninstall your app from the emulator.
4. clean your project and then make your changes
5. run the fresh app again
6. BOOOM your app is now running
if you still got problems then discuss it in comments :)
Do the following:-
Make sure there is no error in any of the XML in the project.
Clean & Build your project again.
Run the application on your emulator(new apk will be now generated in the bin folder).
If the above don't work, try to clear the user data when starting a new emulator instance, try running your updated application then.

trouble debugging and running sample android project

I installed the Android 2.2 SDK (2.2 is the version i have on my smartphone). I've tried running the NotePad sample project as an Android project. Here is what happens: the emulator loads, but when I click on the app, the screen goes blank. There are no errors being thrown. Has anyone else run into this problem? If so, how have you fixed it?
When you press run, the emulator loads AND the application should automatically open and run. Also, make sure there are no errors with the code itself.
If all else fails, try a new/ different SDK and make sure the app has no errors during it's installation into the SDK. Look at the Console and LogCat to make sure that there are no errors the emulator runs.

Categories

Resources