English | 中文
This project contains the sample code for network-url and network-filemanager of HUAWEI Network Kit. The project directory is as follows:
|-- network-url-sample URL network request sample
|-- network-filemanager-sample File upload and download request sample
- It is recommended that the Android SDK version be 19 or later, and the JDK version be 1.8 or later.
- This version uses new features of Java 8, such as Lambda expressions and static API methods.In this version and later versions, the Java 8 compilation options must be added for the Gradle. Otherwise, UrlConnection will be used to send requests, causing limitations on many request capabilities. The code for adding Java 8 compilation options for Gradle is as follows:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
You can visit the Reddit community to learn latest information about HMS Core and communicate with other developers.
If you have any questions about the sample code, try the following:
- Visit
Stack Overflow
and submit your development problem under the
huawei-mobile-services
tag. Huawei experts will help you solve the problem in one-to-one mode. - Visit the HMS Core section in the Huawei Developer Forum and communicate with other developers.
If you encounter any issues when using the sample code, submit your issues or submit a pull request.