I am trying to create a react native apk. I followed all the steps upto the last one which is running cd android && ./gradlew assembleRelease . Now when I run it I get the following errors
FAILURE: Build failed with an exception.
- What went wrong:
Could not determine the dependencies of task ':@react-native-community_async-storage:extractReleaseAnnotations'.
Could not resolve all task dependencies for configuration ':@react-native-community_async-storage:lintClassPath'. Could not resolve com.android.tools.lint:lint-gradle:26.4.2. Required by: project :@react-native-community_async-storage Could not resolve com.android.tools.lint:lint-gradle:26.4.2. Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.4.2/lint-gradle-26.4.2.pom'. Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.4.2/lint-gradle-26.4.2.pom'. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Could not resolve com.android.tools.lint:lint-gradle:26.4.2. Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.4.2/lint-gradle-26.4.2.pom'. Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.4.2/lint-gradle-26.4.2.pom'. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I tried to uninstall asyn storage from @react-native-community_async-storage: , re-installing it again and running cd android && ./gradlew assembleRelease again but it still gives the same error.
What could possibly be the cause of this and how can I generate this apk file?