原生插件打包并使用
- 解决Gradle不显示命令问题
- 解决方法
- 运行打包
- 查看打包好的包
- 引入到uni-app项目中
- 编写配置文件
- `TestModule`
- `TestComponent`
- 制作基座并运行
解决Gradle不显示命令问题
解决方法
运行打包
查看打包好的包
引入到uni-app项目中
编写配置文件
TestModule
{"name": "TestModule","id": "TestModule","version": "1.0.0","description": "测试模块","_dp_type":"nativeplugin","_dp_nativeplugin":{"android": {"plugins": [{"type": "module","name": "TestModule","class": "com.test.uniplugin_module.TestModule"}],"integrateType": "aar","minSdkVersion" : 21}}
}
TestComponent
{"name": "TestComponent","id": "TestComponent","version": "1.0.0","description": "测试组件","_dp_type":"nativeplugin","_dp_nativeplugin":{"android": {"plugins": [{"type": "component","name": "TestComponent","class": "com.test.uniplugin_component.TestComponent"}],"integrateType": "aar","minSdkVersion" : 21}}
}