on 05-22-2023 9:26 AM
I have created a project in Android Studio by selecting Empty Activity, Kotlin, and Finish. and then i have added SAP BTP SDK related dependencies to the gradle files, I keep getting issues while running and building app.
error when running the app: Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugCompileClasspath"
I could not find com.sap.cloud.android:fiori:3.3.1.
Required by:
project :app
Search in build.gradle files
build.gradle(Project level)
top-level build file where you can add configuration options common to all sub-projects/modules.<br><br>buildscript {<br> ext {<br> kotlin_version = '1.4.31'<br> compose_version = '1.0.5'<br> sap_sdk_version = "3.3.1"<br> }<br> repositories {<br> google()<br> //gradlePluginPortal()<br> jcenter()<br> mavenLocal()<br> }<br> dependencies {<br> classpath "com.android.tools.build:gradle:7.1.1"<br> classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"<br> }<br>}<br>allprojects {<br> repositories {<br> google()<br> jcenter()<br> mavenLocal()<br> }<br>}<br>task clean(type: Delete) {<br> delete rootProject.buildDir<br>}<br>
build.gradle(App level)
plugins {<br> id 'com.android.application'<br> id 'org.jetbrains.kotlin.android'<br>}<br><br>android {<br> namespace 'com.example.fiorilauncherapp'<br> compileSdk 33<br><br> defaultConfig {<br> applicationId "com.example.fiorilauncherapp"<br> minSdk 24<br> targetSdk 33<br> versionCode 1<br> versionName "1.0"<br> multiDexEnabled true<br> testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"<br> }<br><br> buildTypes {<br> release {<br> minifyEnabled false<br> proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'<br> }<br> }<br> compileOptions {<br> sourceCompatibility JavaVersion.VERSION_1_8<br> targetCompatibility JavaVersion.VERSION_1_8<br> }<br> kotlinOptions {<br> jvmTarget = '1.8'<br> }<br> buildFeatures {<br> viewBinding true<br> }<br>}<br><br>dependencies {<br><br> implementation 'androidx.core:core-ktx:1.7.0'<br> implementation 'androidx.appcompat:appcompat:1.6.1'<br> implementation 'com.google.android.material:material:1.9.0'<br> implementation 'androidx.constraintlayout:constraintlayout:2.1.4'<br> testImplementation 'junit:junit:4.13.2'<br> androidTestImplementation 'androidx.test.ext:junit:1.1.5'<br> androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'<br><br> implementation "com.sap.cloud.android:fiori:$sap_sdk_version"<br> implementation "com.sap.cloud.android:onboarding:$sap_sdk_version"<br>}
User | Count |
---|---|
72 | |
8 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.