cancel
Showing results for 
Search instead for 
Did you mean: 

SCP for Android - Fatal Error when run app

0 Kudos

Hi,

I generated an Android project with SAP-CP-SDK-for-Android-2.1.0 as Kotlin project. But when i run app, i get error when app launching. Here is app's logcat. I couldn't find any solution for this error.

I hope someone is here with solution.

Best regards,

Utku Y.

Dan_vL
Product and Topic Expert
Product and Topic Expert

I wasn't able to reproduce the problem.

What version of Android Studio are you using? I am using 3.3.2

Under Settings > Languages & Frameworks > Kotlin

what version is shown?

Mine says

Update channel: Stable

version: 1.3.30-release-Studio3.3-1

Regards,

Dan van Leeuwen

0 Kudos

Hi Daniel,

Thank you for your response.

I'm using Android Studio as below and Kotlin version is 1.3.30-release-Studio3.4-1 but in generated files kotlin version is ext.kotlin_version = '1.3.10'and graddle version is 3.3.2 .

Android Studio 3.4
Build #AI-183.5429.30.34.5452501, built on April 10, 2019
JRE: 1.8.0_152-release-1343-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Dan_vL
Product and Topic Expert
Product and Topic Expert
0 Kudos

I upgraded to Android Studio 3.4.

I did get a compile error after choosing to upgrade the gradle version of the project so I wouldn't recommend doing that.

My generated project also contains ext.kotlin_version = "1.3.10"
The kotlin plugin version is now 1.3.31-release-Studio3.4-1.

I wasn't able to reproduce the issue. Do you get the same result when running the app on an Android emulator?

You might try opening the terminal window in Android studio and entering ./gradlew clean
Then zip the project share it.

Regards,

Dan van Leeuwen

0 Kudos

Hi Daniel,

I got same error, after I upgraded kotlin plugin as your's version and tried that on emulator.

So, here is my project's download link.

Regards,

Utku Yeğen

Dan_vL
Product and Topic Expert
Product and Topic Expert
0 Kudos

I was able to open the provided project and successfully run it after making a change to the project's build.gradle file.

maven
{
url 'C:\\Users\\trXXXXX\\Desktop\\SAP-CP-SDK-for-Android-2.1.0\\m2repository'

}

to

mavenLocal()

Not sure if that helps,

Dan van Leeuwen

0 Kudos

I changed maven link as you said, checked on emulator with api level 23 and 28 but I still got error on both of AVDs.

I guess i'll work on iOS only for now.

BTW, Do you have any tutorial link for this setup? I couldn't find any resource for SAP SCP for Android on this link.

Dan_vL
Product and Topic Expert
Product and Topic Expert
0 Kudos

I will try to follow up on the broken link. Thanks for passing that on.

Here are some tutorial resources I would recommend. I am in the process of updating them for the 2.1 release.

https://developers.sap.com/mission.sdk-android-get-started.html

https://blogs.sap.com/2018/10/15/step-by-step-with-the-sap-cloud-platform-sdk-for-android-part-1/

https://developers.sap.com/mission.sdk-android-flows.html

I suppose you could share your project without running gradlew clean. That will increase the size quite a bit but perhaps I will be able to reproduce the problem with it.

Regards,

Dan van Leeuwen

0 Kudos

Thank you for links Daniel, i'll study on them.

Here is projects link.

Accepted Solutions (0)

Answers (1)

Answers (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

HI Utku Yegen,

Did you find an answer to this question?

Best regards,
Ivan

0 Kudos

Hi Ivan,

No unfortunately. I focused on iOS SDK after this problem.

Best regards,

Utku