Android: Distributing an .apk file to test and doesn't work - android

I am building an app using Eclipse. I got it to work on my device and I am trying to distribute it to a couple friends for them to test it on their phones, but I send them the same .apk I installed in my N1 and they aren't able to install it.
I tried sending them the version from inside the bin/ folder, extract it as an unsigned application or as a signed one, with the same results.
My SDK target is 1.6, so this isn't a problem, because both of them have 2.1+.
The main problem for me is that I have to test the application on real devices, since the emulators don't surf the net if I am connected to Internet through a proxy.
I use a Google keytool because I am using some Maps functionality, so I think that it could be in some way the source of the error, but I don't know what I have to do to fix this. Is it possible that the key is only valid for my device?
I thought that maybe the .apk wasn't working and I could only install it through my USB cable, but I was able to install my app from the same e-mail I sent to my friends.
Thanks in advance!!
Edit: I finally got hold of a friend's device and the error I got was the following, although I was able to install the app via Eclipse (USB cable).
WARN/PackageInstaller(3317): Parse error when parsing manifest. Discontinuing installation
But if the manifest was wrong, I wouldn't be able to install and run the app, right?

The Google Maps api has both debug and release keys. So if you are using a debug key and generate a release apk, then the Maps api key will be incorrect and your map won't load any tiles.
You should make sure you are using the Maps Api key generated from your release keystore, and export the app in release mode.

whats the logcat output when the instalation fails ?
you can connect to the device using a usb port or use a logcat app from the market

Related

React native android apk installation error

I install my create signed apk in some other device, it gets installed once only. After I uninstall it and install again the same apk, then it shows error 'app not installed'.
Also, the user login work only on localhost but not on development server/apk.
I have tried cleaning the gradlew every time and regenerating new apk, but nothing works.
Kindly help to resolve the issue.
Installation fails if you try the same file if it is not an app added to Google Store in Android
The first option is to re-install the APK with the same code under a different name,
or
Your device is protected from harmful apps with Google Play Protection. This is why you must release the check.
Open the Google Play Store app Google Play on your Android device.
Next to Menu, Play Protect tab the following settings:
Disables the scanning feature for security threats on the device.
You should use your computer's ip address instead of using 10.0.2.2 if you are running on local device. PS: the codes are still running native in the end. There is a better explanation here. [explained][1]Android Localhost?
About the installation failing, I have not experienced. But maybe it's was already published in Google Play as hong described?

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.

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 - Google Maps doesn't display within my application except in debugging mode

The issue I am having is one that is mirrored in many other threads with one minor difference. I am getting this screen whenever I install the apk file received via export a signed application:
I have followed every one of the following stackoverflow references, but alas, nothing has helped:
-Google Maps API V2 - always get authentication error
-Google Maps Android API v2 Authorization failure
-Google Map Android Api V2 Sample Code not working
-Android - Google Map doesn't display
The issue is, that my map displays PERFECTLY when I am running it to the attached android phone I have plugged into my computer for debugging purposes, but when I export the apk file and install that (after uninstalling the prior of course), it does not work.
Is there any reason why my application would work while my debugged phone is connected and the application is 'run' while said phone is attached but not when I export the apk file, and install it that way?
Thanks in advance for the help!
You need a separate api key for your release mode. Its the same as in debug mode but you need to export the apk file again.
I am assuming that you either forgot to change your API key to the release key on your manifest before generating the apk or that you have the wrong release SHA1 signature to begin with. Make sure that you are using the correct API key and/or that your SHA1 release signature is correct.

Application Install Unsuccessful-while installing app viaOTA

I have developed an application using Android SDK 1.5, application works well on Android Simulator.
Now, I am trying to install application on actual device. I don't have the Android device. So, I am going by OTA way.
For this, I have generated the self sign keystore using keytool utility.
And, using Eclipse's "Eclipse Signed Application package.." option I have generated the signed .apk file and moved it to my web server.
Also, i added MIME type on web server for .apk.
But, when I am trying to download and install the same application on device, application get downloaded and it also prompts for permission. After thag when I click on "Install", it fails with error Application Install Unsuccefull.
Interestingly, I test this url on simulator browser, and it worked perfectly well and application get installed successfully.
Even, I checked that, SDCard is there on device. Settings -> Applications and "Unknown sources" option is alos checked.
Am I clear to you all?
Any Idea what may be going wrong here?
Thanks and appreciate your response,
S.Satheesh
What happens if connect the phone via a USB cable and install the application using the adb install command? Testing this will allow you to determine if the problem is with the package or the over the air update.
Also, you could try running adb logcat to view the logs from your phone after the failed install as this should show you what the problem is.

Categories

Resources