Back to questions
abacus 23/05/2018 13:41:58

Hi,

Im currently having an issue which I can not install the app on the Dev Device, it keeps prompting INSTALL_FAILED_INVALID_APK. I've tried to search the solutions on google but none of them works for me.

However, I managed to run it on the Emulator. So can you help me to solve this?

I followed all of the steps from the documentation.

Regards,

Toan Duong

Abacus
bryanb 23/05/2018 13:48:28
Maybe different problem, but see: https://www.piappbank.com.au/forum/posts/list/5235.page
abacus 23/05/2018 14:34:38
Hi,

It's not the answer, unfortunately, as I have 2 Alberts devices, it works for the first one, but somehow 2nd one doesn't.
adm-gorreve 23/05/2018 15:09:53
Hi Abacus,

Can you check below meta-data is specified in AndroidManifest.xml file or not. What is the OS Version specified in Settings?

<meta-data android:name="application-type" android:value="vaa_merchant" />

Thanks,

Admin
abacus 23/05/2018 15:21:01
Hi,

Yes, I did include that line in the file.

here's my manifest file

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.abacus.abacuspay">
<meta-data android:name="application-type" android:value="vaa_merchant"/>
<meta-data android:name="dns-names" android:value=".ably.io,.fabric.io"/>

<uses-permission android:name="com.aevi.permission.CONFIGURATION" />
<uses-permission android:name="com.aevi.permission.PAYMENT_REQUEST" />
<uses-permission android:name="com.aevi.permission.REFUND_REQUEST" />
<uses-permission android:name="com.aevi.permission.CARD_TYPE" />
<uses-permission android:name="android.permission.INTERNET" />

<application
android:name=".AbacusPaymentApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data
android:name="io.fabric.ApiKey"
android:value="6ef4599c1b9781138ae1339edc8eded1b6b0cb24" />
<activity android:name=".ui.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ui.BaseActivity"></activity>
<activity android:name=".ui.SalesConfirmationActivity"></activity>

</application>

</manifest>
abacus 23/05/2018 15:22:01
os version : ISV.AEVI.T_011.01.08.00053
adm-gorreve 24/05/2018 11:34:52
Hi abacus,

It is weired that why it is not installing on 2nd Albert. Can you please try installing the APK seperately from Command Prompt (Windows) or Terminal (Mac) by using "adb install <APK-name>" command and send same APK to SmartTerminals&Apps@cba.com.au if you get error.

Thanks,

Admin
abacus 14/06/2018 13:50:29
Hi,

you mean I need to generate an apk file and copy it to platformtools folder, run command

adb kill-server

adb connect <ip address>

adb install <apkname>

as we know Albert doesn't allow USB Debug.

Cheers
adm-gorreve 15/06/2018 15:42:07
Hi abacus,

We recently found the issue with android buildToolsVersion also. If you don't specify any buildToolsVersion then Android Studio 3.x uses 26.0.2 but Albert is not allowing APK generated by using 26.0.2. Please explicitly specify buildToolsVersion property with value more than 26.0.2.

Thanks,

Admin