因此,我将离子与电容器一起使用,例如,我有一些Cordova插件: “@Awesome-Cordova-Plugins/Bar Code-Scanner”:“^5.39.1” “@Awesome-Cordova-Plugins/In-App-browser”:“^5.0.0”
现在,当我尝试生成签名的APK时,我有很多ERROS,已经修复了一些像删除Jcenter和其他的。然后我面临另一个错误:
Execution failed for task ':app:collectReleaseDependencies'.
> Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
> Could not find framework-7.0.0.aar (org.apache.cordova:framework:7.0.0).
Searched in the following locations:
https://jcenter.bintray.com/org/apache/cordova/framework/7.0.0/framework-7.0.0.aar
https://jcenter.bintray.com/org/apache/cordova/framework/7.0.0/framework-7.0.0.jar
搜索我发现需要将Cordovaandroidversion从7.0.0(当前版本)更新为10.1.1.
SO已更新,并尝试生成应用程序时:
error: incompatible types: Activity cannot be converted to AppCompatActivity
super(activity, Executors.newCachedThreadPool());
有任何提示吗?如何解决这些问题?
dev解决了这一点:
yarn cap migrate
但是我不使用纱线,而命令npx cap迁移不存在。
问题是我正在使用过时的电容器版本,在升级到电容器3后,它起作用了!