Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution failed for task ':okta_okta-react-native:parseReleaseLocalResources' in react native #332

Closed
mahes-waran opened this issue Oct 26, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@mahes-waran
Copy link

Describe the bug?

FAILURE: Build failed with an exception
./gradlew assemblRelease

Execution failed for task ':okta_okta-react-native:parseReleaseLocalResources'.
Could not resolve all files for configuration ':okta_okta-react-native:androidApis'.
Failed to transform android.jar to match attributes {artifactType=android-platform-attr, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
Execution failed for PlatformAttrTransform: Android\SDK\platforms\android-33\android.jar.
Android\SDK\platforms\android-33\android.jar

What is expected to happen?

Resolved build issue

What is the actual behavior?

Release build generated without issues

Reproduction Steps?

Updated okta-react-native version and build version

Additional Information?

No response

SDK Version

[email protected]
@okta/okta-react-native@^2.7.0
android-33

Build Information

Android:
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33

@mahes-waran mahes-waran added the bug Something isn't working label Oct 26, 2022
@makedirectory
Copy link

Came across this issue with version 2.10.0. Updating to "@okta/okta-react-native": "^2.12.0" solved this issue for us.

@rajdeepnanua-okta
Copy link
Contributor

I believe this issue has been fixed since 2.11.0. I removed react-native-gradle-plugin in this PR: #399, and updated gradle version from 7.4.2. to 8.1.4 in this PR: #399

So now, the android build is simialr to any non-react-native library, and it's also using newer gradle. One of those changes likely fixed this issue in 2.11.0 and forward. So, I'm closing this issue for now, but feel free to reopen if you encounter this bug again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants