microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
8.99k stars 1.48k forks source link

No matching configuration of project :react-native-code-push was found. #2642

Closed ko-devHong closed 10 months ago

ko-devHong commented 10 months ago

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Steps to Reproduce

  1. https://reactnative.dev/docs/0.72/integration-with-existing-apps?language=kotlin
  2. yarn add react-native-code-push
  3. android set-up

Expected Behavior

What you expected to happen?

Build successfully

Actual Behavior

What actually happens?

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Could not resolve project :react-native-code-push.
     Required by:
         project :app
      > No matching configuration of project :react-native-code-push was found. The consumer was configured to find an API of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.2', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
          - None of the consumable configurations have attributes.

Reproducible Demo

Environment

(The more info the faster we will be able to address it!)

uqmessias commented 10 months ago

This is duplicated, please look at #2336

uqmessias commented 10 months ago

Also check to this issue with more info: #1873

ko-devHong commented 10 months ago

This is duplicated, please look at #2336

I'm already set up. This error is different from me.

ko-devHong commented 10 months ago

Also check to this issue with more info: #1873

It was same

AnatolyPristensky commented 10 months ago

Closing as duplicate https://github.com/microsoft/react-native-code-push/issues/1873.