cancel
Showing results for 
Search instead for 
Did you mean: 

Project build problem in Android SDK along with SAP Wizard for Android

former_member735276
Participant
0 Kudos
651

Tutorials: https://developers.sap.com/tutorials/cp-sdk-android-wizard-app.html
--------------------------

Good day! Stopped at step 3 in the tutorial above. More specifically, a problem with synchronization and assembly. The entire stacktrace is shown below:

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all artifacts for configuration ':app:classpath'.
   > Could not resolve com.sap.odata.core.framework.mobile:xscript:20.7.7.
     Required by:
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1
      > Could not resolve com.sap.odata.core.framework.mobile:xscript:20.7.7.
         > Could not get resource 'https://jcenter.bintray.com/com/sap/odata/core/framework/mobile/xscript/20.7.7/xscript-20.7.7.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/com/sap/odata/core/framework/mobile/xscript/20.7.7/xscript-20.7.7.pom'.
               > Read timed out
   > Could not resolve com.sap.odata.core.framework.mobile:xscript-compiler:20.7.7.
     Required by:
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1
      > Could not resolve com.sap.odata.core.framework.mobile:xscript-compiler:20.7.7.
         > Could not get resource 'https://jcenter.bintray.com/com/sap/odata/core/framework/mobile/xscript-compiler/20.7.7/xscript-compiler-20.7.7.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/com/sap/odata/core/framework/mobile/xscript-compiler/20.7.7/xscript-compiler-20.7.7.pom'.
               > Read timed out
   > Could not resolve com.sap.odata.core.framework.mobile:xscript-proxy-compiler:20.7.7.
     Required by:
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1
      > Could not resolve com.sap.odata.core.framework.mobile:xscript-proxy-compiler:20.7.7.
         > Could not get resource 'https://jcenter.bintray.com/com/sap/odata/core/framework/mobile/xscript-proxy-compiler/20.7.7/xscript-proxy-compiler-20.7.7.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/com/sap/odata/core/framework/mobile/xscript-proxy-compiler/20.7.7/xscript-proxy-compiler-20.7.7.pom'.
               > Read timed out
   > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.41.
     Required by:
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1 > com.android.tools.build:gradle:3.5.0
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1 > com.android.tools.build:gradle:3.5.0 > com.android.tools.build:builder:3.5.0
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1 > com.android.tools.build:gradle:3.5.0 > com.android.tools.lint:lint-gradle-api:26.5.0
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1 > com.android.tools.build:gradle:3.5.0 > com.android.tools.build:gradle-api:3.5.0
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1 > com.android.tools.build:gradle:3.5.0 > androidx.databinding:databinding-compiler-common:3.5.0
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1 > com.android.tools.build:gradle:3.5.0 > com.android.tools.build:builder:3.5.0 > com.android.tools:sdk-common:26.5.0
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1 > com.android.tools.build:gradle:3.5.0 > com.android.tools.build:builder:3.5.0 > com.android.tools:common:26.5.0
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1 > com.android.tools.build:gradle:3.5.0 > com.android.tools.build:builder:3.5.0 > com.android.tools.build:manifest-merger:26.5.0
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1 > com.android.tools.build:gradle:3.5.0 > com.android.tools.build:builder:3.5.0 > com.android.tools.analytics-library:tracker:26.5.0
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1 > com.android.tools.build:gradle:3.5.0 > com.android.tools.build:builder:3.5.0 > com.android.tools:sdklib:26.5.0 > com.android.tools:repository:26.5.0
         project :app > com.sap.cloud.android:odata-android-gradle-plugin:3.3.1 > com.android.tools.build:gradle:3.5.0 > com.android.tools.build:builder:3.5.0 > com.android.tools:sdk-common:26.5.0 > com.android.tools.analytics-library:shared:26.5.0
      > Skipped due to earlier error

Thank you advance!


P.S. And there is another problem: when the project was created, a PROJECT level build.gradle file was created, and the APPLICATION level build.gradle file is missing.
View Entire Topic
david_cui2
Advisor
Advisor
0 Kudos

Hi Sergey,

It's great to hear everything your side got back to work. As I know, jcenter server was being down then recovered several days ago(see https://status.bintray.com/). I believe this can explain your build failure and got back to work unexpectedly.

And JCenter is going away (see https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/ and https://www.infoq.com/news/2021/02/jfrog-jcenter-bintray-closure)

We may replace jcenter() with mavenCentral() in a future release. Just FYI.

David Cui