Creating a New Android Studio Project from Scratch

If you decide not to use the Wizard, you can still create a new Android Studio project and then build an app using the SDK libraries. To do this, you'll need to modify the top-level and module-level build.gradle files manually to include all required repositories, dependencies, and settings.

The top-level file stores configuration options common to all sub-projects/modules. The module-level file stores options for your new app.

To generate proxy class Java files, use either the OData Gradle Plugin or the Proxy Generator CLI tool. Both tools are included in the software package.

To use the OData Gradle Plugin, modify the two build.gradle files to add the plugin as a dependency and configure it as required. To use the Proxy Generator CLI tool, open a command prompt and enter the required command. See Using the OData Proxy Class Generator Command-line Tool for more information.


You have run the installation script to install the SDK. See Installing the SAP Cloud Platform SDK for Android for more information.


  1. From the Android Studio Welcome screen, select Start a new Android Studio project and complete the Create New Project wizard. Refer to your Android Studio documentation for further information.
  2. From the project tool window, navigate to the appropriate folder and open the build.gradle file in the editor window.

    For the top-level file, go to <yourproject> -> gradle. For the module-level app, go to <yourproject> -> app.

  3. Edit the files as described in the following topics:

  4. Generate OData proxy classes. See Using the Gradle Tool to Generate Proxy Classes for more information.
  5. To ensure you can debug your new project, enable trace logging for your project; see Debugging.

Next Steps

After you have completed the tasks in this section, your project is configured and you are ready to start developing your mobile application. For more help on using the different SDK components, refer to the following user guides: