cancel
Showing results for 
Search instead for 
Did you mean: 

Mobile Native app android logon fail with scp

Former Member
0 Kudos

Hi everybody,

I followed this sap tutorial https://www.sap.com/developer/groups/android-app-1.html

but I'm unable to login with my scp trial account.

My build.grandle file is the follow:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.northwind.nwandroid"
        minSdkVersion 19
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:26.1.0'
    compile 'com.android.support:support-v4:26.1.0'
    compile 'com.android.support:recyclerview-v7:26.1.0'
    compile 'com.android.support:design:26.1.0'
    testCompile 'junit:junit:4.12'
    compile project(':MAFLogonUI-3.16.1')
    compile project(':MAFSettingScreen-3.16.1')
    compile project(':MAFUIComponents-3.16.1')
    compile project(':MobilePlace-3.16.1')
    compile files('libs/AfariaSLL-7.00.6169.0.jar')
    compile project(':ClientHubSLL-3.16.1')
    compile project(':ClientLog-3.16.1')
    compile project(':Common-3.16.1')
    compile project(':Connectivity-3.16.1')
    compile project(':CoreServices-3.16.1')
    compile project(':DataVaultLib-3.16.1')
    compile project(':E2ETrace-3.16.1')
    compile project(':HttpConvAuthFlows-3.16.1')
    compile project(':HttpConversation-3.16.1')
    compile project(':MAFLogger-3.16.1')
    compile project(':MAFLogonCore-3.16.1')
    compile project(':ODataAPI-3.16.1')
    compile files('libs/odataoffline.jar')
    compile project(':ODataOnline-3.16.1')
    compile files('libs/perflib-1.2.0.jar')
    compile project(':Request-3.16.1')
    compile files('libs/sap-e2etrace-2.3.9.0.jar')
    compile project(':SupportabilityFacade-3.16.1')
    compile project(':XscriptParser-3.16.1')
}

As you can see I imported the library in aar format because in the sap mobile sdk directory I didn't find the .jars file.
I tried also to extract all the aar files and use the jar files inside of them but I've obtain the same result.

In the simulator I tried to login using chrome and it seems login succesfully....

I've used also my real device and problems still persist.

using adb logger I've found this:
ClientHub: SSO Client not installed on this device

Any suggestions?

Accepted Solutions (0)

Answers (1)

Answers (1)

tamas_jozsa
Discoverer
0 Kudos

Hi Matteo,

we only ship .aar files, but you should be able to use them via gradle. If gradle does not pick it up via the regular root libs folder, please try to create a new folder under the src/main/libs and place all the .aar files there. Then specify this src/main/libs folder as the project gradle file as

repositories{
flatDir{
    dirs 'src/main/libs'

A note on the client-hub library. Are you going to use client-hub? If not please don't add

compile project(':ClientHubSLL-3.16.1')

It will make the sdk want to search for the Client Hub application on the device. If not found then similar error should be present in the logcat.

Regards,

Tamas