Configuring the Wizard Plugin¶
When you install the SDK, the installation script copies the SDK libraries to the local Maven repository.
If required, you can specify a different Maven repository for the wizard to use when generating a new app. For example, if you select the Use SAP Cloud Shipment option, the wizard will use the URL of the SAP Cloud Shipment channel, which is a public customer-facing SAP Maven repository; if you select the Use other repository option, you can provide the network path or URL of a remote server. This allows all the developers on your team to use the same, central version of the SDK without any additional manual downloads.
- From Android Studio, select File > Settings to open the Settings window.
In the left panel, select SAP SDK for Android. In this configuration page, there are three options provided:
Use local SDK installation - If the SDK is installed in the local Maven repository or somewhere local, the Wizard adds
mavenLocal(), or the directory of the SAP SDK for Android defined in the system environment variable
/m2repository, as appropriate, to the generated
build.gradlefile when you generate your app; otherwise, it adds a warning to the file.
Use SAP Cloud Shipment - For this option, you need to obtain a technical user from the SAP Repositories Management site, download the
Basic Auth Passwordfile, and then add the user name and password to your system environment variables as
SAP_MAVEN_PASSWORD, respectively. The Wizard adds the URL of the SAP Cloud Shipment channel and credentials information to the generated
build.gradlefile. When all of these settings are in place, Gradle can fetch the libraries of SAP Business Technology Platform SDK via the SAP infrastructure.
The credentials of the technical user need to be regenerated every 6 months.
- Use other repository - Type the URL for the required repository or use the Browse button to navigate to
and select the desired folder. If you specify a location here, the Wizard adds this path to the your project's
build.gradlefile when you generate your app.
To clear the custom location and revert to the default local maven repository, select Reset. If the SDK is not installed in the local Maven repository, the Wizard adds a warning to the generated