在华为AppGallery Connect控制台创建应用。开发者可以先创建一个项目,然后在项目中添加应用。创建应用的过程中开发者需要填写对应应用的名称、包名、分类、语言等信息,创建完成后开发者可以获得应用的基本配置信息。






npm install -g yarn
安装成功效果如下:
执行以下命令创建React Native项目。
npx react-native init <项目名>
如执行以下命令将创建一个名为rndemo的项目。
npx react-native init rndemo
创建成功效果如下:
buildscript {
repositories {
google()
jcenter()
// Check that you have the following line (if not, add it)
maven { url 'https://developer.huawei.com/repo/' } // HUAWEI Maven repository
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
// Add the following line
classpath 'com.huawei.agconnect:agcp:1.5.0.300' // HUAWEI agcp plugin
}
}
allprojects {
repositories {
google()
jcenter()
// Check that you have the following line (if not, add it):
maven { url 'https://developer.huawei.com/repo/' } // HUAWEI Maven repository
}
}
apply plugin: 'com.android.application'
// Check that you have the following line (if not, add it)
apply plugin: 'com.huawei.agconnect
- (BOOL)Application:(UIApplication *)Application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions {
// Override point for customization after Application launch.
[AGCInstance startup];
return YES;
}