question

thedangler avatar image
thedangler asked thedangler edited

Testing application on device fails after each update.

Hi I've followed the instructions My app is on my flex device after being downloaded from the sandbox store.

I've watched a video relating to it found here: https://www.youtube.com/watch?v=Sk0aZzlocog&featur...

However there is no reload or sync button anymore, therefor this is useless.

However, every time I make changes and want to test them on the device, I press run app and I choose the flex device I get the following error.

Installation failed with message Failed to finalize session:
INSTALL_FAILED_UPDATE_INCOMPATIBLE

gradle file:
apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    defaultConfig {
        applicationId "com.example.rateme2"
        minSdkVersion 17
        targetSdkVersion 22
        versionCode 3
        versionName "3.0"
    }
    lintOptions {

        quiet true
        abortOnError false
    }
    signingConfigs {
        release {
            keyPassword 'pass'
            storeFile file('path/to/file')
            storePassword 'pass'
            keyAlias 'key0'
        }
    }

    buildTypes {
        release {
            signingConfig signingConfigs.release
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }

        debug {
            minifyEnabled false
            signingConfig signingConfigs.release
        }
    }


}


dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:22.2.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:support-annotations:28.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.clover.sdk:clover-android-sdk:latest.release'
}


How am I supposed to test my app without uploading a new APK and downloading it again every time?

If I ignore the warning and overwrite the app my permissions are stripped and my calls to get merchant information fail.

Matt
Clover Android SDKApp MarketClover FlexSandboxDevKit
2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

c716524 avatar image c716524 commented ·

The reload button can be found in the app "Setup".

0 Likes 0 ·
thedangler avatar image thedangler c716524 commented ·

Thanks, As a Canadian developer I was reading somewhere to use the Register app but didn't have that installed. I found a reload button in the Transaction app. That seemed to work too.

Thanks for the help.

0 Likes 0 ·

1 Answer

thedangler avatar image
thedangler answered thedangler edited
Upload release apk
Download it to you device or emulator.
uninstall it using adb command.
use Android studio or adb to install your app locally.
open Reigster app, transaction app, or setup app and press the sycn button.
You app with now have permissions.

Use an app that has the sync button like transactions or setup. In the instructions found after a long time digging told me to use the Sync in the Register app. But Canadians do not have the Register app to sync.
Hope people find this helpful.
Onto my next issue, getting my app to open after the initial broadcast.
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community