直接在这个demo中写uniapp的(Android)原生插件的代码即可。 package.json {"name": "xt-HelloWorld","id": "xt-HelloWorld", "version": "1.0.0","description": "PictureView","_dp_type": "nativeplugin", "_dp_nativeplugin": { "android": { "hooksClass": "", "plugins": [ { "type": "module", "name": "xt-HelloWorld", "class": "com.example.helloworld.HelloWorld"} ],"integrateType": "aar", "abis": []}}}
2022-08-22 16:04:07 92.95MB uniapp android uniapp插件原生代码
1