• Building
  • Try to export to Android but it says "apk was not installed"

Please please help me I don't know why this is happening, I have everything, debug keystore, Adb, jdk, all the project has latin characters, gles2, and anyways it doesn't work. It worked for me a week ago but now it isn't. I tried to change the version and also delete the old ones and steel nothing :(. In the installation the error is:

 java.util.NoSuchElementException
	at java.util.ArrayList$Itr.next(ArrayList.java:863)
	at b.a.a.j.a.e.currentApk(Unknown Source:2)
	at com.apkcombo.app.installer2.impl.rootless.b.p(Unknown Source:276)
	at com.apkcombo.app.installer2.impl.rootless.b.q(Unknown Source:0)
	at com.apkcombo.app.installer2.impl.rootless.b.r(Unknown Source:0)
	at com.apkcombo.app.installer2.impl.rootless.a.run(Unknown Source:6)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:764)

If someone can help I will very appreciate it!

Welcome to the forums @falcon!

How are you installing the app on the device? Are you using Android Studio, Godot, or some other method? Based on my very limited Android experience, the error above seems to be with placing the APK on the device rather than an issue with the APK itself. I would see if using an alternative method of placing the APK, like through Android Studio, fixes the issue. You could also try emailing or sending the APK to your device through something like Dropbox and see if you can install it directly from the device as well.

2 months later

You could try to disable google play protect (you can find it in the playstore settings). But dont forget to enable it again after you tried it.

3 years later

If you're encountering an issue where your Android application (APK) is not installing, there are several potential reasons for this problem. Here are some troubleshooting steps you can follow:

Unknown Sources: Make sure that your Android device is configured to allow installations from unknown sources. To enable this, go to "Settings" on your device, then navigate to "Security" or "Privacy," and enable the "Unknown Sources" option.

Corrupted APK: Ensure that the APK file is not corrupted. Try re-exporting the APK from your development environment and make sure the file is intact.

Sufficient Storage: Check if your device has sufficient storage space for installing the application. If the device is running low on storage, it might not be able to install new applications.

App Compatibility: Verify that your APK is compatible with the version of Android running on your device. Check the Android version requirements specified in your app's development environment.

Installation Conflicts: If a previous version of the app is already installed, try uninstalling it before attempting to install the new APK.

ADB Installation: If you are installing the APK using Android Debug Bridge (ADB), ensure that your device is connected, recognized by ADB, and that the installation command is correctly executed.

Security Software: Some security software on your device might interfere with the installation process. Temporarily disable any antivirus or security software, and attempt the installation again.

Package Name Conflicts: Make sure that the package name in your AndroidManifest.xml file is unique. Conflicting package names can cause installation issues.

Logcat Logs: Use Android's Logcat tool to view logs generated during the installation attempt. This can provide insights into any specific errors or issues.

App Signature: Ensure that the APK is signed correctly with the appropriate keystore. Mismatched signatures can prevent installations.