question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not get unknown property 'publishing_version' for project ':ReactAndroid' of type org.gradle.api.Project.

See original GitHub issue

Description

Occurs when upgraded react-native from 0.68.1 -> 0.70.1

at node_modules\react-native\ReactAndroid\hermes-engine\build.gradle group = "com.facebook.react" version = parent.publishing_version

The Gradle file is not able to locate the property publishing-version.

Version

0.70.1

Output of npx react-native info

System: OS: Windows 10 10.0.19044 CPU: (4) x64 Intel® Core™ i5-7200U CPU @ 2.50GHz Memory: 949.90 MB / 7.89 GB Binaries: Node: 16.2.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: API Levels: 23, 28, 29, 30, 31 Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 31.0.0 System Images: android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom Android NDK: 22.1.7171670 Windows SDK: Not Found IDEs: Android Studio: Version 2020.3.0.0 AI-203.7717.56.2031.7583922 Visual Studio: Not Found Languages: Java: 14.0.1 - C:\Program Files\OpenJDK\jdk-14.0.1\bin\javac.EXE npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.1 => 0.70.1 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Try to upgrade from 0.68.1 -> 0.70.1 using https://react-native-community.github.io/upgrade-helper/?from=0.68.1&to=0.70.1

Snack, code example, screenshot, or link to a repository

image

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
scottwiocommented, Nov 7, 2022

I had this same issue, was a mistake in the upgrade process. I had copied the changes to android/settings.gradle incorrectly putting the new files at the bottom of the file rather than inside the new arc if block

Screenshot 2022-11-07 at 11 39 24

https://raw.githubusercontent.com/react-native-community/rn-diff-purge/release/0.69.7/RnDiffApp/android/settings.gradle

0reactions
Sub-Zero-1commented, Oct 24, 2022

My problems with hermes where homemade. Some of my native colleagues (using nativ first, then RN after login) “optimized” our code so the APK does not contain the libhermes-executor-debug.so as it was included even for the release APK. Therefore they made the following changes deep in the build.gradle:

exclude '**/libhermes-inspector.so'
exclude '**/libhermes-executor-debug.so'

In addition during our last upgrade of RN we had to set:

enableVmCleanup: false

to make hermes run. I had to remove both changes to make hermes run again with 0.70.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not get unknown property 'repositoryUrl' for project
Apparently in gradle 3.5, hasProperty() returns true in cases where the property is indeed missing but still has a getter.
Read more >
react-native-reanimated' of type org.gradle.api.project. ...
Could not get unknown property 'rnMinorVersion' for project ':react-native-reanimated' of type org.gradle.api.Project. Open side panel.
Read more >
Migrating to Gradle Catalogs from BuildSrc in android studio
But I keep running in to the following error when building: Could not get unknown property 'libraries' for extension 'libs' of type org.gradle....
Read more >
Gradle Plugins for Java Troubleshooting
DashOExtension; Error: Could not get unknown property 'classesDir' for main classes of type org.gradle.api.internal.tasks.DefaultSourceSetOutput.
Read more >
Gradle build fails on fresh clone - Smack Support
Could not get unknown property 'uploadArchives' for root project 'Smack' of type org.gradle.api.Project. * Try: > Run with --stacktrace ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found