Capacitor App Plugin 不要让 android studio 构建 apk

问题描述 投票:0回答:0

我在这里学习教程:https://capacitorjs.com/docs/apis/app 我做了以下步骤:

  • pnpm 安装@capacitor/app
  • npx 上限同步
  • pnpm react-scripts build && npx cap sync android && npx cap copy android && npx cap open android

我一直都是这样做的,它总是能正常构建apk,但是当我添加Capacitor APP插件时,android studio报错了

android studio bug

我什至没有更改代码,我只是通过 pnpm install @capacitor/app 和 npx cap sync 添加了插件

有人经历过吗?您对如何进行有任何想法吗?

我试过的解决方案:

  • 安装java sdk 17
  • 删除android文件夹并执行npx cap add android && npx cap sync pnpm react-scripts build && npx cap sync android && npx cap copy android && npx cap open android

我希望正常编译应用程序/apk,我正在尝试使用 backButton 事件

reactjs ionic-framework ionic2 capacitor capacitor-plugin
© www.soinside.com 2019 - 2024. All rights reserved.