You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get expo-iap to work in an Expo app in managed mode but I am getting the following build error from gradle, even after I've manually added missingDimensionStrategy "store", "play" to the defaultConfig entry in app/build.gradle:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':expo:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':expo:debugCompileClasspath'.
> Could not resolve project :expo-iap.
Required by:
project :expo
> 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 'org.jetbrains.kotlin.platform.type' with value 'androidJvm'. However we cannot choose between the following variants of project :expo-iap:
- amazonDebugApiElements
- playDebugApiElements
All of them match the consumer attributes:
- Variant 'amazonDebugApiElements' capability com.dooboolab.RNIap:expo-iap:unspecified declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'amazonDebug' but the consumer didn't ask for it
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Provides attribute 'store' with value 'amazon' but the consumer didn't ask for it
- Variant 'playDebugApiElements' capability com.dooboolab.RNIap:expo-iap:unspecified declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'playDebug' but the consumer didn't ask for it
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Provides attribute 'store' with value 'play' but the consumer didn't ask for it
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to get expo-iap to work in an Expo app in managed mode but I am getting the following build error from gradle, even after I've manually added
missingDimensionStrategy "store", "play"
to thedefaultConfig
entry inapp/build.gradle
:What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions