I am trying to install app but getting this error everytime.
I Used following commands -
- npm install
- react-native run-android
Could not HEAD 'https://dl.bintray.com/okta/com.okta.android/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4.32/kotlin-compiler-embeddable-1.4.32.pom'. Received status code 502 from server: Bad Gateway
We are having the exact same issue. No change in the code from yesterday but today getting this error when trying to build the project. When you go to the link in the error, it does indeed return a 502 - https://dl.bintray.com/okta/com.okta.android/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.3.50/kotlin-compiler-embeddable-1.3.50.pom
I have found the solution follow below steps:
- kill terminal
- open project in Android Studio (Android folder location).
- Click on sync in logcat . Project will build successfully.
- Run the project on emulator / real device.
- react-native start
- Reload the App .
Issue will be resolved.
What worked for me:
In Android/build.gradle make these changes :
under allprojects->repositories, remove mavenLocal() if you have it and add mavenCentral(), also remove if you have it:
I updated my @okta/okta-react-native to v 2.2.0 as well.
After making those changes, the build worked fine.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.