I have an app..I exported the signed apk and uploaded to play store.. When I run signed apk from my computer, it runs fine, but when I download the same from play store, it crashes... I connected the log-cat, it says no classdef found for one of my classes.. But I checked my manifest many times.. I have defined the class there.
What shall I do
Below is my logcat-
And below is my manifest where the class is defined.
I've had similar problems with eclipse, and each time I publish to Play Store, before uploading the APK I verify that its built correctly
You can do that by installing the exported APK to your device by using ADB and only after verifying the build works correctly should you upload it to Play Store
You can install the exported apk to your device by issuing the following commands in command prompt/adb
adb install build.apk
where build.apk is the name of the built apk binary
If you end up with build that fails to run(e.g. by similar exception you now received), try to "Clean Project" from eclipse's menu, it have helped me most of time with these kind of crashes after building
Related
I recently created an android app. When I tried to debug my app on my phone, it worked. Then I generated the apk, and tried to execute it from the file browser, it doesn't work, and I have the following error message : "App not installed", despite having allowed the unknown source in the settings. I also tried with an official app. For that, I extracted the Apk with apk extractor, uninstalled the app, and then executed the apk: same error. I tried many solutions found on the web, but none of them worked :
I disabled play protect.
I reseted the app preferences in the settings.
I tried on my former phone and on my father's phone.
I updated the os on my phone (android 10 to android 12).
I have already installed many apps just by executing the apk on my phones (including my current one) and it's the first time i'm facing this problem.
Can you help me please ?
Debug build and Release build have different signatures so before installing "release app" you should uninstall "debug app".
Also check expiration date of your release signature and make sure it is a valid signature.
I generated APK by doing following in Android Studio: Build -> Generate Signed apk
I copied this APK in Phone's memory and launched it. It installed fine, but only for the first time. I then uninstalled the existing app and launched the same APK again, now it says "App Not Installed".
If I copy the same APK from my computer to this phone again, then again it cannot be installed anymore on this device.
I don't want to do with Play protect off on the device.
Is there a solution to installable the apk all the time?
Go to link And fill out the form. After about two weeks, if the app is OK, your problem will be resolved.
The web service protocol must be HTTPS.
Access permissions must be for a reason.
Etc
Can't install play store build in any device. Installation fails with cant install "App name " pop up. Release build is working fine in all devices(I tried sharing the build to friends), testlab run was also success full, no error pre-launch report.
The app was rejected initially as I added all age group but did not provide the test account details(All access in the app is restricted). As I provided it, play store approved it and the app was published. I have tried to upload the apk file instead of .aap.Still, the issue persists. I ran it in the test lab and could find no issues. There are no issues in the pre-launch report.
android:testOnly="false" //in manifest
android.injected.testOnly=false // gradle.properties
I uploaded the signed .aap build to play store. After getting published I could download but as the installation process starts it stops with a pop up Can't install "App name". The log that I got during this process is
Error -504 while installing com.xxxx.xxxx.xxx.xxxx: INSTALL_FAILED_TEST_ONLY: installPackageLI
But it is not a test build, it is a signed release build.I have already added android:testOnly="false" in manifest and android.injected.testOnly=false in gradle.properties. As mentioned in other discussions, it is not device specific as I couldn't install in any device.
I want to run my application in phone but I get following message:
Installation failed with message:
INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package signatures do not match
the previously installed version; ignoring!.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
In my phone I have installed previous version of app from google play. I know that uninstalling old version of app from my phone can fix the problem but I don't want to do this because then I might lose all app specific data.
What I tried:
generating signed version of app using the same keystore.jks like previously
changing versionCode and versionName in build.grandle file and then generating new version of app
And still I have the same problem. What should I do to update my app without losing data?
There are two possibilities I can think of
You use Google Play App Signing. If you use Google Play App Signing then the signature in apps coming from Google Play will always be different to the app coming from your IDE. The only way you can get the update to work is to update the app from Google Play. The best way to do this during development is to use an "Internal test track". Google launched these at Google I/O this year and they let you update your app in seconds from Google Play. So when you have an update, don't install from your IDE, upload to Google Play internal test track, republish, and then update from Google Play. It is really quick.
You don't use Google Play App Signing, but you are trying to install your debug build instead of your release/production build. Make sure you are building the production release APK, so it is signed with the same key as the one uploaded to Google Play.
If I'm understanding correctly you want to re install the "same" apk in your phone but with some changes in the code (updates) but Android Studio can't install the new apk.
I can only think in one thing, this is the explanation:
Please remember that android has different "Build Variants" there could be many but you will always have "debug" and "production" build variants, as I can read, you have installed the one in Play Store this means that you have a "production" build variant already installed in your phone, so you need a new "production" variant version of your app with the same build data (code and name version) and the updates in the code.
Build a signed apk with the same data as the previous version (code and name version) (Just like the one you used to upload to Play Store).
Find the signed apk.
Use adb to check your connected devices, expect a list
adb devices
Use adb to install this new apk.
adb -s <device_identifier> install <apk_name_include_apk>
Following those steps should let you install what you need.
Go in your React Native > Android >app
in the app folder,
you can see a build just delete this folder and Clear React Native project by npm cache clean cmd/Terminal Command.
Now try to run I hope it will Run for some of you.
It's working for me.
When I install my apk directly on my device it will install and run.
When I download it from Google Play it will result in:
Unknown Error code during application install: "-24"
Even on devices the app hasn't been installed before.
Go to your /data/data/ folder and search for your com.foobar.myapp
Delete it, install the application again. It may work, but the causes or this error code are multiple.