Could not get unknown property 'publishing_version' for project ':ReactAndroid' of type org.gradle.api.Project.
See original GitHub issueDescription
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
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:9 (2 by maintainers)
Top GitHub Comments
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 blockhttps://raw.githubusercontent.com/react-native-community/rn-diff-purge/release/0.69.7/RnDiffApp/android/settings.gradle
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:
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.