OutputFile is deprecated in android/app/build.gradle #35004
Labels
Platform: Android
Android applications.
Resolution: Answered
When the issue is resolved with a simple answer
Description
Trying to generate an apk file but at the app/build.gradle level, the outputFile is deprecated
import com.android.build.OutputFile //outputFile deprecated
When i run ./gradlew bundlerelease, it throws off the error:
How can I get a workaround for generating the apk release?
Version
0.70.1
Output of
npx react-native info
System:
OS: Windows 10 10.0.19044
CPU: (4) x64 Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz
Memory: 2.20 GB / 7.92 GB
Binaries:
Node: 16.17.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-212.5712.43.2112.8815526
Visual Studio: Not Found
Languages:
Java: 17.0.4.1 - C:\Program Files\Common Files\Oracle\Java\javapath\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
info React Native v0.70.3 is now available (your project is running on v0.70.1).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.70.3
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.70.1
info To upgrade, run "react-native upgrade".
Steps to reproduce
Clone the repo below
Cd android
Cd app
open build.gradle
Check line 5
cd..
run ./gradlew bundlerelease
Snack, code example, screenshot, or link to a repository
Link to repository
https://github.com/oluwaloju/React-native-issue-deprecated-OutputFile-
The text was updated successfully, but these errors were encountered: