cafebazaar / react-native-poolakey

ReactNative In-App Billing SDK for Cafe Bazaar App Store
MIT License
14 stars 4 forks source link

build error #1

Closed aliunco closed 3 years ago

aliunco commented 3 years ago

Hi cafebazaar team, and thanks for this react native sdk After installation (using yarn add @cafebazaar/react-native-poolakey), I tried to build my project ( using ./gradlew assembleRelease), but unfortunately I got this error (below), did I miss something?

 Missing 'package' key attribute on element package at [com.github.cafebazaar.Poolakey:poolakey:1.1.0-beta02] AndroidManifest.xml:12:9-55
[com.github.cafebazaar.Poolakey:poolakey:1.1.0-beta02] ~/.gradle/caches/transforms-2/files-2.1/fb6d4b5fe4befb48790a5c866d1c54da/poolakey-1.1.0-beta02/AndroidManifest.xml Error:
        Validation failed, exiting

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

here is my react-native info infromations:

System:
    OS: macOS 11.2.3
    CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
    Memory: 260.73 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.16.1 - /usr/local/bin/node
    Yarn: 1.22.5 - /usr/local/bin/yarn
    npm: 6.14.12 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.9.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK: Not Found
    Android SDK:
      API Levels: 25, 27, 28, 29
      Build Tools: 27.0.3, 28.0.3, 29.0.2
      System Images: android-28 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 3.2 AI-181.5540.7.32.5056338
    Xcode: /undefined - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_121 - /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.4 => 0.63.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
aliunco commented 3 years ago

I've change the android/build.gradle file and update the gradle version: from classpath("com.android.tools.build:gradle:3.5.3") to classpath("com.android.tools.build:gradle:4.1.3")

And also update the gradle-wrapper.properties distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip

and the problem solved!