dooboolab-community / react-native-iap

In App Purchase module for React Native!
https://react-native-iap.dooboolab.com
MIT License
2.81k stars 641 forks source link

Google Play Developer Console shows warning for deprecated billing library #1298

Closed varungupta85 closed 3 years ago

varungupta85 commented 3 years ago

I see following warning on Play Developer Console which is not expected.

Play Billing Library Version Deprecation We've detected that this app is using an old version of Google Play Billing. From November 1, 2021, all app updates must use Billing Library version 3 or newer.

Action required: Please verify your publicly available APKs are updated to the latest version of the Play Billing Library. This includes any APK or App Bundle rolled out in production.

Version of react-native-iap

5.2.0

Version of react-native

0.64.0-rc.3

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

No warning on Play Developer Console about using deprecated billing library

Actual behavior

Play Developer Console shows warning that the app is using a deprecated version of Google Play Billing library and that it should be using version 3 or newer. When I check the build.gradle for react-native-iap, I see that the billing library used is com.android.billingclient:billing:3.0.0 which is version 3. So, not sure why does the Play Developer Console shows a warning.

image

JeroenVanSteijn commented 3 years ago

I have the same

gabrinunes commented 3 years ago

same here,is this a problem what i have to worry about??

mrarronz commented 3 years ago

Same problem, don't know why this warning keeps showing on the console

andresesfm commented 3 years ago

I created a PR to update to the latest android billing library: https://github.com/dooboolab/react-native-iap/pull/1323 However I don't think that's the issue. Can you please look at your other dependencies and let us know if you are using react-native-billing alongside this library? I believe that's the culprit

marcpechaitis commented 3 years ago

@andresesfm I just tried upgrading to 6.0.4 (with #1323) and am getting an error when I try to clean or build my Android app:

> Configure project :app
Reading env from: .env

> Configure project :react-native-firebase_analytics
:react-native-firebase_analytics package.json found at /Users/marcpechaitis/Dropbox/Develop/rn/sandbox/iTour/node_modules/@react-native-firebase/analytics/package.json
:react-native-firebase_app package.json found at /Users/marcpechaitis/Dropbox/Develop/rn/sandbox/iTour/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_analytics:firebase.bom using default value: 26.5.0
:react-native-firebase_analytics package.json found at /Users/marcpechaitis/Dropbox/Develop/rn/sandbox/iTour/node_modules/@react-native-firebase/analytics/package.json
:react-native-firebase_analytics:version set from package.json: 10.8.1 (10,8,1 - 10008001)
:react-native-firebase_analytics:android.compileSdk using custom value: 30
:react-native-firebase_analytics:android.targetSdk using custom value: 30
:react-native-firebase_analytics:android.minSdk using custom value: 16
:react-native-firebase_analytics:reactNativeAndroidDir /Users/marcpechaitis/Dropbox/Develop/rn/sandbox/iTour/node_modules/react-native/android

> Configure project :react-native-firebase_app
:react-native-firebase_app package.json found at /Users/marcpechaitis/Dropbox/Develop/rn/sandbox/iTour/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:firebase.bom using default value: 26.5.0
:react-native-firebase_app:play.play-services-auth using default value: 19.0.0
:react-native-firebase_app package.json found at /Users/marcpechaitis/Dropbox/Develop/rn/sandbox/iTour/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:version set from package.json: 10.8.1 (10,8,1 - 10008001)
:react-native-firebase_app:android.compileSdk using custom value: 30
:react-native-firebase_app:android.targetSdk using custom value: 30
:react-native-firebase_app:android.minSdk using custom value: 16
:react-native-firebase_app:reactNativeAndroidDir /Users/marcpechaitis/Dropbox/Develop/rn/sandbox/iTour/node_modules/react-native/android

> Configure project :react-native-firebase_messaging
:react-native-firebase_messaging package.json found at /Users/marcpechaitis/Dropbox/Develop/rn/sandbox/iTour/node_modules/@react-native-firebase/messaging/package.json
:react-native-firebase_app package.json found at /Users/marcpechaitis/Dropbox/Develop/rn/sandbox/iTour/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_messaging:firebase.bom using default value: 26.5.0
:react-native-firebase_messaging package.json found at /Users/marcpechaitis/Dropbox/Develop/rn/sandbox/iTour/node_modules/@react-native-firebase/messaging/package.json
:react-native-firebase_messaging:version set from package.json: 11.1.2 (11,1,2 - 11001002)
:react-native-firebase_messaging:android.compileSdk using custom value: 30
:react-native-firebase_messaging:android.targetSdk using custom value: 30
:react-native-firebase_messaging:android.minSdk using custom value: 16
:react-native-firebase_messaging:reactNativeAndroidDir /Users/marcpechaitis/Dropbox/Develop/rn/sandbox/iTour/node_modules/react-native/android
ReactNativeFirebase WARNING: NPM package '@react-native-firebase/messaging' depends on '@react-native-firebase/app' v11.1.2 but found v10.8.1, this might cause build issues or runtime crashes.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':react-native-iap'.
> Could not resolve all artifacts for configuration ':react-native-iap:classpath'.
   > Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.21.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.21/kotlin-stdlib-jdk8-1.3.21.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.analytics-library:shared:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.lint:lint-gradle-api:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:gradle-api:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > androidx.databinding:databinding-compiler-common:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdk-common:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:common:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools.build:manifest-merger:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools.analytics-library:tracker:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdklib:26.3.3 > com.android.tools:repository:26.3.3
   > Could not find org.ow2.asm:asm:6.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/ow2/asm/asm/6.0/asm-6.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta02
   > Could not find org.ow2.asm:asm-analysis:6.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-analysis/6.0/asm-analysis-6.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3
   > Could not find org.ow2.asm:asm-commons:6.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-commons/6.0/asm-commons-6.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta02
   > Could not find org.ow2.asm:asm-util:6.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-util/6.0/asm-util-6.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta02
   > Could not find net.sf.jopt-simple:jopt-simple:4.9.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3
   > Could not find net.sf.proguard:proguard-gradle:6.0.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/net/sf/proguard/proguard-gradle/6.0.3/proguard-gradle-6.0.3.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3
   > Could not find com.squareup:javawriter:2.5.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3
   > Could not find org.bouncycastle:bcpkix-jdk15on:1.56.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdk-common:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools.build:apkzlib:3.3.3
   > Could not find org.bouncycastle:bcprov-jdk15on:1.56.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdk-common:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools.build:apkzlib:3.3.3
   > Could not find org.ow2.asm:asm-tree:6.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-tree/6.0/asm-tree-6.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3
   > Could not find it.unimi.dsi:fastutil:7.2.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3
   > Could not find com.googlecode.json-simple:json-simple:1.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3
   > Could not find com.google.guava:guava:26.0-jre.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/guava/guava/26.0-jre/guava-26.0-jre.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.analytics-library:shared:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.analytics-library:crash:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.lint:lint-gradle-api:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:gradle-api:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > androidx.databinding:databinding-compiler-common:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:bundletool:0.6.0
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:common:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools.analytics-library:tracker:26.3.3
   > Could not find com.google.code.gson:gson:2.8.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/code/gson/gson/2.8.0/gson-2.8.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.analytics-library:shared:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > androidx.databinding:databinding-compiler-common:3.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build.jetifier:jetifier-core:1.0.0-beta02
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdklib:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools.build:manifest-merger:26.3.3
   > Could not find org.apache.httpcomponents:httpmime:4.5.2.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.analytics-library:crash:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdklib:26.3.3
   > Could not find org.apache.httpcomponents:httpcore:4.4.5.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.analytics-library:crash:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdklib:26.3.3
   > Could not find org.apache.httpcomponents:httpclient:4.5.2.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.analytics-library:crash:26.3.3
   > Could not find org.jetbrains.kotlin:kotlin-reflect:1.3.21.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-reflect/1.3.21/kotlin-reflect-1.3.21.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.lint:lint-gradle-api:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdk-common:26.3.3
   > Could not find org.antlr:antlr4:4.5.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/antlr/antlr4/4.5.3/antlr4-4.5.3.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > androidx.databinding:databinding-compiler-common:3.3.3
   > Could not find commons-io:commons-io:2.4.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/commons-io/commons-io/2.4/commons-io-2.4.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > androidx.databinding:databinding-compiler-common:3.3.3
   > Could not find com.googlecode.juniversalchardet:juniversalchardet:1.0.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > androidx.databinding:databinding-compiler-common:3.3.3
   > Could not find com.squareup:javapoet:1.8.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/squareup/javapoet/1.8.0/javapoet-1.8.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > androidx.databinding:databinding-compiler-common:3.3.3
   > Could not find com.google.auto.value:auto-value:1.5.2.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:bundletool:0.6.0
   > Could not find com.google.errorprone:error_prone_annotations:2.2.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:bundletool:0.6.0
   > Could not find com.google.protobuf:protobuf-java:3.4.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:bundletool:0.6.0
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdk-common:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools.analytics-library:protos:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools.analytics-library:tracker:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:bundletool:0.6.0 > com.android.tools.build:aapt2-proto:0.3.1
   > Could not find com.google.protobuf:protobuf-java-util:3.4.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/protobuf/protobuf-java-util/3.4.0/protobuf-java-util-3.4.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:bundletool:0.6.0
   > Could not find org.jetbrains.kotlin:kotlin-stdlib:1.2.20.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.2.20/kotlin-stdlib-1.2.20.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build.jetifier:jetifier-core:1.0.0-beta02
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta02
   > Could not find org.jdom:jdom2:2.0.6.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/jdom/jdom2/2.0.6/jdom2-2.0.6.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta02
   > Could not find org.apache.commons:commons-compress:1.12.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/apache/commons/commons-compress/1.12/commons-compress-1.12.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdklib:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdklib:26.3.3 > com.android.tools:repository:26.3.3
   > Could not find javax.inject:javax.inject:1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/javax/inject/javax.inject/1/javax.inject-1.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdk-common:26.3.3
   > Could not find net.sf.kxml:kxml2:2.3.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools.build:manifest-merger:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools.ddms:ddmlib:26.3.3
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdklib:26.3.3 > com.android.tools.layoutlib:layoutlib-api:26.3.3
   > Could not find com.google.code.findbugs:jsr305:1.3.9.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools.build:apkzlib:3.3.3
   > Could not find com.google.guava:guava:26.0-jre.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/guava/guava/26.0-jre/guava-26.0-jre.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools.build:apkzlib:3.3.3
   > Could not find org.jetbrains:annotations:13.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/jetbrains/annotations/13.0/annotations-13.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdklib:26.3.3 > com.android.tools.layoutlib:layoutlib-api:26.3.3
   > Could not find com.sun.activation:javax.activation:1.2.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdklib:26.3.3 > com.android.tools:repository:26.3.3
   > Could not find org.glassfish.jaxb:jaxb-runtime:2.2.11.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdklib:26.3.3 > com.android.tools:repository:26.3.3
   > Could not find com.google.jimfs:jimfs:1.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/jimfs/jimfs/1.1/jimfs-1.1.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-iap > com.android.tools.build:gradle:3.3.3 > com.android.tools.build:builder:3.3.3 > com.android.tools:sdklib:26.3.3 > com.android.tools:repository:26.3.3

* 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.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings

I tried tweaking my android/build.gradle settings to align with the values in #1323 but it didn't make a difference:

android/build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        // buildToolsVersion = "29.0.2"
        // minSdkVersion = 16
        // compileSdkVersion = 29
        // targetSdkVersion = 29
        buildToolsVersion = "30.0.2"
        minSdkVersion = 16
        compileSdkVersion = 30
        targetSdkVersion = 30
        // Remove 'supportLibVersion' property and put specific versions for AndroidX libraries
        // via react-native-iap (https://github.com/dooboolab/react-native-iap)
        androidXAnnotation = "1.1.0"
        androidXBrowser = "1.0.0"
        // supportLibVersion = "28.0.0"
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:3.5.3")
        classpath('com.google.gms:google-services:4.3.3')
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }

        google()
        jcenter()
        maven { url 'https://www.jitpack.io' }
    }
}

Do you have any insight into where things are breaking down for me? Thanks!

hyochan commented 3 years ago

@marcpechaitis Damn!! The updated android billing client 3.0.3 requires kotlin 😱

Let me update this now.

hyochan commented 3 years ago

I've updated the doc for kotlin installation

hyochan commented 3 years ago

I think I was wrong. It doesn't matter with Kotlin, I think. I've just made a new PR attempting to fixing it in #1328.

Please install 6.0.5 and try again.

Related #1327.

marcpechaitis commented 3 years ago

@hyochan thanks, I just tried it with 6.0.5 and I got the same result: the app builds no problem, but it still fails upon launch with error Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found or could not be created

I'm digging into that error now (any suggestions?), but from this vantage point it looks like 6.0.5 builds successfully.

hyochan commented 3 years ago

Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found or could not be created

@marcpechaitis Heya! It doesn't look like happening on our side. At a glimpse, it looks more like a flipper issue or dev env issue in React Native.

marcpechaitis commented 3 years ago

@hyochan I finally figured it out.

In case it helps someone in the future (most likely me!): Further down the stack trace I discovered Expected Android API level 21+ but was 30, which led me to this Stack Overflow post. Here they suggested to add the following in /android/app/build.gradle:

implementation 'com.squareup.okhttp3:okhttp:4.9.0'

andresesfm commented 3 years ago

@marcpechaitis It looks like the error you were seeing might be specific to your setup. to confirm you might do ./gradlew app:dependencies in that way, you can see that this library doesn't depend directly on okhttp. (react-native itself does though)