App ID: CA7RF9A9VJTR6, com.itsacheckmate.cloverprint
Version 1.0
Device: Station 2018
SDK Version: com.clover.sdk:clover-android-sdk:221.9
Error message simply says:
Itsacheckmate
"Error installing app"
We are unable to reproduce the issue as developers. The application installs successfully on the Station 2018 Emulator and all other Clover device emulators. We have successfully sideloaded the app on a Mini 2nd Gen DevKit, and have printed from the app as designed. Emulators have been configured as described at https://docs.clover.com/clover-platform/docs/sett...
We participated in a conference call with the Merchant and Clover Technical Support. The issue remains unresolved. We would like to know how the device's debug information can be sent to Support for further escalation as described at https://community.clover.com/questions/14827/error-installing-app...
###
Update: My company received the following message from Clover tech support.
I tried to install the APK you have uploaded, and it looks like it is a testOnly APK, which would explain why it cannot be installed:
adb: failed to install com.itsacheckmate.cloverprint-7.apk: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]
Analyzing the APK shows you have this flag:android:testOnly="true"
In your AndroidManifest.xml.
I do not know if you are adding it in the AndroidManifest explicitly, or if it is in your build.gradle file, or if AndroidStudio added it in automatically, but regardless, you will need to remove it in order for the APK to install to the device.
adb: failed to install com.itsacheckmate.cloverprint-7.apk: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]
Analyzing the APK shows you have this flag:android:testOnly="true"
In your AndroidManifest.xml.
I do not know if you are adding it in the AndroidManifest explicitly, or if it is in your build.gradle file, or if AndroidStudio added it in automatically, but regardless, you will need to remove it in order for the APK to install to the device.
I confirmed that analyzing the APK shows the undesired setting but upon searching my codebase was unable to find any reference to it.
Apparently, Android Studio 3.0+ automatically sets
android:testOnly="true"
on APKs that are run from the IDE. More information is available at:
https://developer.android.com/guide/topics/manifest/application-element#testOnly
https://commonsware.com/blog/2017/10/31/android-studio-3p0-flag-test-only.html
https://developer.android.com/guide/topics/manifest/application-element#testOnly
I suggest this attribute be added to the list of requirements under Section 2. Next, click the Manage APKs button. > IMPORTANT heading at https://docs.clover.com/clover-platform/docs/testing-apks