Hi, so I’m trying to add CI in my react native project, but facing error sharing the gitlab-ci.yml file along with error, help pls.
gitlab-ci.yml
image: reactnativecommunity/react-native-android
before_script:
- export ANDROID_SDK_ROOT=$ANDROID_HOME
- export GRADLE_USER_HOME=$(pwd)/.gradle
- npx envinfo
- npm install
stages:
- build
- test
- deploy
build:
stage: build
script:
- echo $CI_COMMIT_TAG
- cd android && chmod +x gradlew
- ./gradlew clean
- ./gradlew assembleRelease
when: manual
artifacts:
paths:
- android/app/build/outputs/
test:
stage: test
script:
- echo “Testing the app”
when: manual
deploy:
stage: deploy
script:
- sudo gem install fastlane
- sudo gem install bundler -v 2.4.22
- sudo bundle install
- fastlane deploy
when: manual
error:
location: class RNPlayServicesLocationProvider
Note: Some input files use or override a deprecated API.
FAILURE: Build failed with an exception.
What went wrong:
3496Execution failed for task ‘:react-native-location:compileReleaseJavaWithJavac’.