0

Then on building or launhcing on my device i get following error:

Could not determine the dependencies of task ':app:compileFreeDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:freeDebugCompileClasspath'.
   > Could not resolve project :capacitor-android.
     Required by:
         project :app
      > No matching configuration of project :capacitor-android was found. The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'minApi' with value '____free', attribute 'tier' with value 'free', attribute 'abi' with value 'x86' but:
          - None of the consumable configurations have attributes.

It is building my project using grable.

I have tried Build Clean, Build Rebuild and File > Invlaidate Caches and Resatrt as well.

Kindly help.

4

1 回答 1

0

安装 jetifier 通过执行解决了我的错误npm install jetifier

Jetifier 工具将 support-library-dependent 库迁移到依赖等效的 AndroidX 包

于 2022-01-24T10:22:01.917 回答