Could not find com.google.android.gms:play-services-tapandpay:18.2.0
BlackcoinDev opened this issue · 8 comments
I am trying to compile the android version, but I keep getting the following error
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.google.android.gms:play-services-tapandpay:18.2.0.
I am trying to understand where this module is suppose to be?
I tried on both MacOS 16.2 and Ubuntu 22.04
I am trying to compile the android version, but I keep getting the following error
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.google.android.gms:play-services-tapandpay:18.2.0.
I am trying to understand where this module is suppose to be?
I tried on both MacOS 16.2 and Ubuntu 22.04
I had the same problem. TapandPay Is a dependent package that requires authorization. https://developers.google.com/pay/issuers/apis/push-provisioning/android/releases#release_notes
I am trying to compile the android version, but I keep getting the following error
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.google.android.gms:play-services-tapandpay:18.2.0.
I am trying to understand where this module is suppose to be?
I tried on both MacOS 16.2 and Ubuntu 22.04I had the same problem. TapandPay Is a dependent package that requires authorization. https://developers.google.com/pay/issuers/apis/push-provisioning/android/releases#release_notes
Thank you. I will try this and report back
If you are an authorized partner who needs access, use the button below to request access.
So the app can currently not be reproduced or even compiled by anonymous users or by users that are not play-services-tapandpay "authorized partners"?
If you are an authorized partner who needs access, use the button below to request access.
So the app can currently not be reproduced or even compiled by anonymous users or by users that are not play-services-tapandpay "authorized partners"?
If you are not using this component, you can remove it from the code. After I commented it, it was able to start.
If you are an authorized partner who needs access, use the button below to request access.
So the app can currently not be reproduced or even compiled by anonymous users or by users that are not play-services-tapandpay "authorized partners"?
If you are not using this component, you can remove it from the code. After I commented it, it was able to start.
can you point out to the correct component?
If you are an authorized partner who needs access, use the button below to request access.
So the app can currently not be reproduced or even compiled by anonymous users or by users that are not play-services-tapandpay "authorized partners"?
If you are not using this component, you can remove it from the code. After I commented it, it was able to start.
can you point out to the correct component?
Remove files
android/app/src/main/java/com/bitpay/wallet/GooglePushProvisioningModule.java
android/app/src/main/java/com/bitpay/wallet/GooglePushProvisioningPackage.java
src/lib/google-push-provisioning/GooglePushProvisioning.ts
Code comments
in android/app/src/main/java/com/bitpay/wallet/MainApplication.java
// packages.add(new GooglePushProvisioningPackage());
in src/store/card/card.effects.ts
// import GooglePushProvisioningModule from '../../lib/google-push-provisioning/GooglePushProvisioning';
// const {lastFourDigits, name} = data;
// const opc =
// provisioningData.user.card.provisioningData.opaquePaymentCard;
// await GooglePushProvisioningModule.startPushProvision(
// opc,
// name,
// lastFourDigits,
//);
Well, for my purpose changing the code sadly is not helpful.
The file is supposedly published by someone in (didn't verified it's legit version published by Google): https://github.com/vicinity/vcx-hosted-maven/blob/main/play-services-tapandpay-18.2.0.aar and can be used to build latest version on github 14.12.0 and version 14.11.4 as:
- download aar file to folder
./bitpay-app/android/app/
: - run sed to use the file by modify of
./bitpay-app/android/app/build.gradle
such as with command:
sed -i "s/implementation 'com.google.android.gms:play-services-tapandpay:18.2.0'/implementation(files('play-services-tapandpay-18.2.0.aar'))/g" /home/appuser/bitpay-app/android/app/build.gradle;
App can be built fully by:
podman build --pull --ulimit nofile=16384:16384 --rm -t bitpay -f Containerfile
APK generated in: /home/appuser/bitpay-app/android/app/build/outputs/apk/release/app-release.apk
FROM node:18.16.1-slim
RUN set -ex; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive \
apt-get install --yes -o APT::Install-Suggests=false --no-install-recommends \
openjdk-17-jdk \
git \
wget \
ca-certificates; \
rm -rf /var/lib/apt/lists/*; \
useradd -ms /bin/bash appuser;
USER appuser
ENV ANDROID_SDK_ROOT="/home/appuser/sdk" \
ANDROID_HOME="/home/appuser/sdk" \
NODE_ENV="development"
RUN set -ex; \
mkdir -p "/home/appuser/sdk/licenses"; \
printf "\n24333f8a63b6825ea9c5514f83c2829b004d1fee" > \
"/home/appuser/sdk/licenses/android-sdk-license"; \
cd /home/appuser/; \
git clone --depth 1 --branch v.14.11.4 https://github.com/bitpay/bitpay-app/;
WORKDIR /home/appuser/bitpay-app
RUN set -ex; \
yarn install; \
cd android/app; \
wget https://github.com/vicinity/vcx-hosted-maven/raw/main/play-services-tapandpay-18.2.0.aar; \
echo "8547cfd099a63bf57c6b35acf54c362d50d4eb5f363745c7a83f06429ece9853 play-services-tapandpay-18.2.0.aar" | sha256sum -c; \
printf "\nAPP_UPLOAD_STORE_FILE=bitpay.pfx\nAPP_UPLOAD_STORE_PASSWORD=bitpay_alias\nAPP_UPLOAD_KEY_ALIAS=bitpay_alias\nAPP_UPLOAD_KEY_PASSWORD=bitpay_alias" >> /home/appuser/bitpay-app/android/gradle.properties; \
keytool -genkey -alias bitpay_alias -keystore /home/appuser/bitpay-app/android/app/bitpay.pfx -storetype PKCS12 -keyalg RSA -keysize 2048 -storepass bitpay_alias -keypass bitpay_alias -validity 10000 -dname "CN=Stephen Pair, OU=Copay, O=Bitpay, L=Atlanta, ST=Georgia, C=US"; \
sed -i "s/implementation 'com.google.android.gms:play-services-tapandpay:18.2.0'/implementation(files('play-services-tapandpay-18.2.0.aar'))/g" /home/appuser/bitpay-app/android/app/build.gradle; \
sed -i "s/BRAZE_API_KEY_REPLACE_ME/b0df801c-1b66-4f66-97a7-d919f8c48992/g" /home/appuser/bitpay-app/android/app/src/main/res/values/braze.xml; \
sed -i "s/BRAZE_SENDER_ID_REPLACE_ME/149194066736/g" /home/appuser/bitpay-app/android/app/src/main/res/values/braze.xml; \
sed -i "s/GOOGLE_MAPS_API_KEY_REPLACE_ME/AIzaSyCz8x_R-MGA-D_vo1EQEakBSmlgAX7rmH0/g" /home/appuser/bitpay-app/android/app/src/main/AndroidManifest.xml; \
sed -i "s/ALLOWED-URL-PREFIXES-REPLACE-ME/https:\/\/bitpay.com,https:\/\/test.bitpay.com,https:\/\/staging.bitpay.com,https:\/\/bws.bitpay.com,https:\/\/www.coinbase.com,https:\/\/api.coinbase.com,https:\/\/api.1inch.io\/v4.0\/,https:\/\/api.coingecko.com\/api\/v3\/simple\/token_price\/,https:\/\/checkout.simplexcc.com,https:\/\/sandbox.test-simplexcc.com,https:\/\/api.testwyre.com,https:\/\/api.sendwyre.com,https:\/\/api.zenledger.io\/bitpay\/wallets\/,https:\/\/rest.iad-05.braze.com,https:\/\/sdk.iad-05.braze.com,https:\/\/cdn-settings.segment.com,https:\/\/api.segment.io,https:\/\/cloudflare-eth.com\/,https:\/\/polygon-rpc.com\/,https:\/\/matic-mumbai.chainstacklabs.com/g" /home/appuser/bitpay-app/android/app/src/main/AndroidManifest.xml; \
RUN set -ex; \
cd /home/appuser/bitpay-app/android/ ; \
./gradlew assembleRelease
Notes for RB of version v.14.12.0
to change above script:
- Path should be
/Users/johnathanwhite/dev/bitpay-app
instead of/home/appuser/bitpay-app/
- node version
18.14.2
instead of18.16.1