spackkr
spackkr
  • 发布:2021-10-25 17:33
  • 更新:2022-11-12 19:57
  • 阅读:614

使用gomobile生成aar文件,然后使用离线环境测试aar可以正常使用,但云打包调试基座后提示当前运行的基座不包含原生插件

分类:uni-app

首先使用了gomobile对go项目进行了编译(有CGO),编译成为aar扩展,然后引入了离线打包环境的测试项目中,引入了CXX,CPP配置见下图。当使用离线打包的测试环境在本地运行时,可以正常运行。提交云打包调试基座时的配置文件内容和目录文件如图。
其中miner.aar为gomobile编译完成后的插件,mem_plot-release.aar是离线引用miner.aar的插件(接UNIAPP使用的离线插件)。miner.aar本身有44MB,提交云打包调试基座之后,返回的apk仅仅只有18MB,显然没有将miner.aar打包进入调试基座中。另外因为超出打包大小限制,因此已充值几百块钱,这种情况算不算打包失败?可以退款吗?

{  
    "name": "MemBeerMiner",  
    "id": "MemBeerMiner",  
    "version": "1.0.0",  
    "description": "MemBeerMiner",  
    "_dp_type":"nativeplugin",  
    "_dp_nativeplugin":{  
        "android": {  
            "plugins": [  
                {  
                    "type": "module",  
                    "name": "MemBeerMiner",  
                    "class": "com.example.mem_plot.MEMPlot"  
                }  
            ],  
            "hooksClass": "",  
            "integrateType": "aar",  
            "dependencies": [  
                "net.java.dev.jna:jna:5.8.0"  
            ],  
            "compileOptions": {  
                "sourceCompatibility": "1.8",  
                "targetCompatibility": "1.8"  
            },  
            "abis": [  
                "armeabi-v7a",  
                "arm64-v8a",  
                "x86"  
            ],  
            "minSdkVersion": "21",  
            "useAndroidX": false,  
            "permissions": [  
            ],  
            "parameters": {  

            }  
        }  
    }  
}  
2021-10-25 17:33 负责人:无 分享
已邀请:
dangweiwu

dangweiwu

大哥 你golang怎么写的 我连测试都无法通过 能不能指点指点

要回复问题请先登录注册