Could not determine the dependencies of task ‘:instantapp:packageDebugInstantAppBundle’.
Could not resolve all task dependencies for configuration ‘:instantapp:debugCompileClasspath’.
Could not resolve project :game.
Required by:
project :instantapp
No matching variant of project :game 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 ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Feature’ but:
- Variant ‘debugApiElements’ capability proj.android-studio:game:unspecified declares an API of a component, as well as attribute ‘com.android.build.api.attributes.BuildTypeAttr’ with value ‘debug’:
- Incompatible because this component declares a component, as well as attribute ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Apk’ and the consumer needed a component, as well as attribute ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Feature’
- Variant ‘debugBundleElements’ capability proj.android-studio:game:unspecified:
- Incompatible because this component declares a usage of ‘android-bundle’ of a component and the consumer needed an API of a component
- Other compatible attributes:
- Doesn’t say anything about com.android.build.api.attributes.BuildTypeAttr (required ‘debug’)
- Doesn’t say anything about com.android.build.gradle.internal.dependency.AndroidTypeAttr (required ‘Feature’)
- Variant ‘debugMetadataElements’ capability proj.android-studio:game:unspecified declares a component, as well as attribute ‘com.android.build.api.attributes.BuildTypeAttr’ with value ‘debug’:
- Incompatible because this component declares a component, as well as attribute ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Metadata’ and the consumer needed a component, as well as attribute ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Feature’
- Other compatible attribute:
- Doesn’t say anything about its usage (required an API)
- Variant ‘debugRuntimeElements’ capability proj.android-studio:game:unspecified declares a runtime of a component, as well as attribute ‘com.android.build.api.attributes.BuildTypeAttr’ with value ‘debug’:
- Incompatible because this component declares a component, as well as attribute ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Apk’ and the consumer needed a component, as well as attribute ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Feature’
- Variant ‘releaseApiElements’ capability proj.android-studio:game:unspecified declares an API of a component:
- Incompatible because this component declares a component, as well as attribute ‘com.android.build.api.attributes.BuildTypeAttr’ with value ‘release’, attribute ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Apk’ and the consumer needed a component, as well as attribute ‘com.android.build.api.attributes.BuildTypeAttr’ with value ‘debug’, attribute ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Feature’
- Variant ‘releaseBundleElements’ capability proj.android-studio:game:unspecified:
- Incompatible because this component declares a usage of ‘android-bundle’ of a component and the consumer needed an API of a component
- Other compatible attributes:
- Doesn’t say anything about com.android.build.api.attributes.BuildTypeAttr (required ‘debug’)
- Doesn’t say anything about com.android.build.gradle.internal.dependency.AndroidTypeAttr (required ‘Feature’)
- Variant ‘releaseMetadataElements’ capability proj.android-studio:game:unspecified:
- Incompatible because this component declares a component, as well as attribute ‘com.android.build.api.attributes.BuildTypeAttr’ with value ‘release’, attribute ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Metadata’ and the consumer needed a component, as well as attribute ‘com.android.build.api.attributes.BuildTypeAttr’ with value ‘debug’, attribute ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Feature’
- Other compatible attribute:
- Doesn’t say anything about its usage (required an API)
- Variant ‘releaseRuntimeElements’ capability proj.android-studio:game:unspecified declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute ‘com.android.build.api.attributes.BuildTypeAttr’ with value ‘release’, attribute ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Apk’ and the consumer needed a component, as well as attribute ‘com.android.build.api.attributes.BuildTypeAttr’ with value ‘debug’, attribute ‘com.android.build.gradle.internal.dependency.AndroidTypeAttr’ with value ‘Feature’
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
这个问题有人遇到过么 rebuild时出现