Digital Assistant and Mobile

Get Involved. Join the Conversation.

Posts

  • Prabeethsoy Nair
    Error: Could not find method...1
    Topic posted August 30, 2018 by Prabeethsoy Nair, tagged Android, Bots 
    Title:
    Error: Could not find method implementationSdkVersion() for arguments [28] on object of type com.android.build.gradle.AppExtension with Oracle bolt Android client
    Summary:
    Error while creating Oracle bolt client through android sdk
    Content:

    Hi Gurus,

    i am facing below issue in my Oracle chat bot application when i am trying to create android message client for bolt. 
     
    Error:   Could not find method implementationSdkVersion() for arguments [28] on object of type com.android.build.gradle.AppExtension.
     
     
    Error log 
    Caused by: org.gradle.api.GradleScriptException: A problem occurred evaluating project ':app'.
    at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:92)
    at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$2.run(DefaultScriptPluginFactory.java:199)
    at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)
    at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:204)
    at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:61)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
    at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:58)
    at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:41)
    at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
    at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
    at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:64)
    ... 97 more
    Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method implementationSdkVersion() for arguments [28] on object of type com.android.build.gradle.AppExtension.
    at org.gradle.internal.metaobject.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:179)
     
    **build.gradle**
    apply plugin: 'com.android.application'
     
    android {
        implementationSdkVersion 28
        defaultConfig {
            applicationId "cap.com.cxcapgboltmobi"
            minSdkVersion 15
            targetSdkVersion 28
            versionCode 1
            versionName "1.0"
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
     
    dependencies {
        implementation fileTree(dir: 'Libs', include: ['*.jar'])
        implementation 'com.android.support:appcompat-v7:28.0.0-rc02'
        implementation 'com.android.support.constraint:constraint-layout:1.1.2'
        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'
        // place a dependecy on the created modules to use bots SDK
        implementation project(':bots-client-sdk-android-core-18.2.3.0')
        implementation project(':bots-client-sdk-android-ui-18.2.3.0')
     
        //Other dependencies used by bots SDK
        implementation 'com.google.firebase:firebase-messaging:11.0.4'
        implementation 'com.google.firebase:firebase-core:11.0.4'
        implementation 'com.google.code.gson:gson:2.4'
        implementation 'com.squareup.okhttp3:okhttp:3.4.1'
        implementation 'com.android.support:support-annotations:26.0.2'
        implementation 'com.android.support:appcompat-v7:27.1.1'
        implementation 'com.android.support:recyclerview-v7:27.1.1'
        implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
        implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0'
        implementation 'com.google.android.gms:play-services-location:11.0.4'
        implementation 'com.github.bumptech.glide:glide:4.6.1'
        implementation 'com.android.support:support-v4:27.1.1'
        implementation 'com.android.support:exitinterface:27.1.1'
        implementation 'com.android.support:support-media-compact:27.1.1'
        implementation 'com.google.android.gms:play-services-location:12.0.1'
        implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.10.0'
    }
     
     
     
     
     
     
     
     

     

  • Mohammed Alyahya
    Accessing addProperties variables in Flows - Android sdk35.0
    Topic posted July 12, 2018 by Mohammed Alyahya, tagged Android, Bots 
    Title:
    Accessing addProperties variables in Flows - Android sdk
    Summary:
    How to retrieve properties in the Flows chat bot console added through the android sdk
    Content:

    Hi,

    I embedded the Oracle chat bot using the sdk (bots-client-sdk-android-18.1.1.0) into one of our apps.

    The sdk is working fine, but I facing an issue with accessing the user properties set through the android sdk. I don't seem to be able to retrieve the property in the chat bot flow console. Can someone help me with how to do that.

    ----------------------------------------------------

    a little more details:

    I am setting the user's first name, last name and then adding two different string variables (someVariable1, someVariable2) to the user through the User.getCurrentUser().addProperties(); method in the sdk.

    Now I am able to retrieve the updated first and last name of user in the Flows page of my chat bot. However, I haven't been successful in retrieving the two properties at all. 

    I tried accessing them like a user scoped variables through "${user.someVariable1.value}" and a few other options but to no use

     

    I would appreciate the help in accessing those added properties.

    Regards,
    Mohammed Alyahya

  • Andre Brouwer
    How to add icon image to chatbot header in Android SDKAnswered25.0
    Topic posted June 25, 2018 by Andre BrouwerGreen Ribbon: 100+ Points, tagged Android, Bots, Mobile 
    Title:
    How to add icon image to chatbot header in Android SDK
    Summary:
    How to add icon image to chatbot header in Android SDK. Just like de javascript version of the chatbot
    Content:

    Hi,

    I am just een beginner with the Oracle chat bots. I have seen a een demo of the Oracle Java Chatbot, and now im trying to recreate this in an Android app using the Android SDK of the chatbot (bots-client-sdk-android-18.2.3.0).

    I managed to get the welcome and startofconversation text in the app. But now I also want an image with the corporate logo next to this. Is this possible in de Android SDK. I have added an image on how this looks in de javascipt version of the oracle chatbot.

    Kind regards,

    Andre Brouwer

    Image:
  • Andre Brouwer
    Clear chatbot session Android SDK95.0
    Topic posted June 25, 2018 by Andre BrouwerGreen Ribbon: 100+ Points, tagged Android, Bots, Mobile 
    Title:
    Clear chatbot session Android SDK
    Summary:
    Clear chatbot session Android SDK V18.2.3.0
    Content:

    Hi,

    I just embedded the Oracle chatbos (bots-client-sdk-android-18.2.3.0) in one of our Android apps. Looks like the chat is working fine.

    The only thing is that whenever the chatbot is restarted (even when app is force closed) the chat history is saved to. I would like a clean chatbot session everytime the chatbot is (re) started.

    So is there a way to reset (or restart) te chat bot session?

    I used the code from de chatbot sample to start te chatbot (bots-client-sdk-android-samples-18.2.3.0).

    Kind Regards,
    Andre Brouwer

  • Martin Jarvis
    Oracle Mobile Application Framework (MAF) 2.5.1...5.0
    Topic posted June 7, 2018 by Martin JarvisSilver Medal: 2,000+ Points, tagged Android, iOS, Mobile 
    Title:
    Oracle Mobile Application Framework (MAF) 2.5.1 released
    Summary:
    We're pleased to announce the release of version 2.5.1 of Oracle Mobile Application Framework (MAF).
    Content:

    We're pleased to announce the release of version 2.5.1 of Oracle Mobile Application Framework (MAF).  

     

    For additional release information, such as release notes and certification matrix, please refer to the MAF documentation on OTN

    Fore more information please on what's changed see the Release Notes

    We encourage you to upgrade to this latest MAF release as soon as possible.