apk is working with emulator but getting application not installed message in device - android

My problem is like application working in emulator and the same apk is not working in device(getting application not installed message).
My application using libraries such as twitter,cordova etc.
If am building the same code in previous developer machine then that apk is working in device.
I am using windows 7 enterprise edition 64 bit.
Please suggest me some solution.

I had this error and I had to sign the .apk before installing it on a real device. You can read about it here

Related

I cannot install .apk which have geneteted from AndroidStudio on my phone

As I have stated in the title I'm struggling with .apk I cannot install application on my phone I'm getting app not installed. But when installing via usb I'm able to install application on the emulator phone. It’s always showing App Not Installed on mobile phone.
When I run application via AndroidStudio to USB the application has been installed. I do not know where I should looking for issues. May be someone had the similat issue.
There are two things you can try:
First of all build your apk by Build/Build Bundles/Build APK and not just by creating apk as a side effect of simply running the app under Android Studio
Make sure no other flavors are installed on your device - sometimes devices offer "Uninstall for all users" - that's what you should be looking for.

Can't Install after sharing it another mobile

I made an Android app using Android studio, deployed and ran it directly by using my mobile running Oreo.
It installed successfully. But later I tired to share the APK from my mobile to other mobiles. But none of them are able to Install it.
However, if I build the APK and share the app-debug.apk to other mobiles. It Installs successfully.
I can't build APK and share app-debug.apk it everyone.
I usually deploy it in my mobile, share APK(which used to work before)
Can anyone please help
Please excuse typos, I have typed from mobile.
There might be a signing issue. Is your app signed? The default signing is the debug signing. When you just build and deploy or run it on a connected device, it is signed by default as a debug sign.
If it is not uniquely signed, then running or installing on other devices might not be possible. Look at the app signing instruction and guide by Google, here, if you wish to distribute your app on other devices.
Another problem might be in the security authorization of other devices. Your device on which you are building has the developer options turned on. To run and install unsigned apps you'll need to activate the developer options in the device you want to run it on. Look at this link about Developer Options and how to turn it on.
by default the Android Studio packages just the needed files and installs the app in your mobile. If you share to other mobiles, the app will not install in few devices due to a few reasons like OS version, files mismatch, SHA keys mismatch, etc.
However, if you build the APK and share, the APK is equipped to be installed in any device starting from the minimum SDK version to the target SDK version.

Failed to install app apk in android device

I have the app running fine in the android emulator. But when I tried to install in the device it is giving error.
In CoolPad Note - running 5.1 version - error is "Failed to install the app"
In Galaxy A7 - running 6.0 version - error is "parsing failed"
I am using sqlite db, apache csv parser lib, Square's sqldelight.
Min Sdk - 19 and Max Sdk - 25
I tried giving all the uses-permission based on this link
I unlocked developer options in the phone and enabled installing from unknown sources. Still not able to install the app. In the same phone, I can install a simple android app. So the problem is with the package or the code. Please help.
Usb with both the phones are not working. So I am sending the apk through bluetooth and then installing it with package installer in the phone. How to get the installation log from the phone.
The app is 4 forms and uses fragments. If needed I can upload the apk.
I have had a similar problem. For me the problem was the APK Signature Scheme v2 option in Android Studio (version 2.3.1):
https://developer.android.com/about/versions/nougat/android-7.0.html#apk_signature_v2
When signing my apk with Signature version v2 selected, I was able to download and install my apk on a LG Nexus 5X (android 7.1.1). But on a Motorola Moto G3 (android 5.1) I would see "failed to install".
By selecting both signature version v1 and v2 when signing my app, this problem was resolved and I could download and install the apk on both phones.
I hope this will help you and others with the same issue.
If you use Galaxy A7.
You can tap *#9900# in dialer app (name is 'phone').
You can find "RUN DUMPSTATE/LOGCAT" and tap it.
Then tap "COPY TO SDCARD(INCLUDE CP RAMDUMP)".
You can find 'log' folder in MyFiles app.

Run Android wear app

I want to create an Android wearable app on Android studio. I have installed the apk file on mobile to test run it. I would like to know how I can run the same apk on wearable device.Also, apk file created on Studio is different for wearable and mobile devices. How can we run it? Thanks in advance!
As it mentioned at official website you need to create special package signed by release key. See more info about packaging here.
When developing, you install apps directly to the wearable like with handheld apps. Use either adb install or the Play button on Android Studio.
Note: The automatic installation of wearable apps does not work when you are signing apps with a debug key and only works with release keys.
During the development period, do not use release key for signing. Instead, you should build your app which would result in two apks, one for the phone and one for the wear device. Then install each of them separately on the corresponding device using adb or Android Studio. Make sure you are using the same package names for both apks.
When you are done with your development, then build the app with your release key; then the wear apk will be embedded inside your phone apk and installation of your phone apk on a phone will result in the installation of the embedded wear apk on the wear device (make sure you remove the dev apks from both devices prior to this step otherwise installation will fail due to different keys).
Trying to debug through Android Studio as suggested by Julia and Ali, but it is always showing me Parse error while installing or running the code.
I have created a project for both mobile and wear. While running for mobile it works fine in the mobile device but while running the code in the wear it always shows Parse error.
I am using Moto 360 for running and debugging.

Android Application not installing

I made a android application on my pc. I kept the build sdk at 4.1, and minimum sdk version at 2.2
The app ran fine on the emulator but when i tried it on my friends Samsung Note it after installing gave an error "Application Not installed". I did so on Google Nexux 7.
I exported the app as a unsigned apk
I tried a simple hello world ap but had the same problem. Please help what to do and how to correct the error.
you need to sign the app to make it run on a real device.. simple choose export as a signed apk and sign it with a keystore...if you don't have one you can make a new keystore through same wizard that you get at the time of exporting

Categories

Resources