2/12/2024 0 Comments React navigation uncompiled png file passed as argument. must be compiled first into .flat file![]() ![]() ![]() This a no important problem for the majority of my app, but it is not with the transitions animations. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.Ĭurrently I has this problem when a screen is go Back. update babel-preset-react-native to 5.0.0 fixed this for me. This is a no-op, but it indicates a memory leak in your application. flat file.' How do I resolve this issue I've looked at this question and have also tried adding android.enableAapt2false to the gradle-wrapper.properties file. ResolutionStrategy.Warning: Can't perform a React state update on an unmounted component. NOTE: Do not place your application dependencies here they belong ![]() My adle file is this: // Top-level build file where you can add configuration options common to all sub-projects/modules.Ĭlasspath ':gradle:3.1.3' If I set android.enableAapt2=true (the error above it raised with aapt2 disabled) in the grade.properties I got this error: D:\WorkingCopy\Apps\CpVehicle\src\android\app\build\intermediates\res\merged\release\drawable-hdpi\node_modules_reactnavigation_src_views_assets_backicon.png: error: uncompiled PNG file passed as argument. Which is it's caused by the asset files that gets bundled, like: nodemodulesreactnavigationsrcviewsassetsbackicon.png It's clearly related to AAPT2, the new version present in gradle tools 3.0 - but even the migration guide doesn't seem to offer an explanation for. If I remove the react-native-device-info package, the error appear with the next installed package that is react-native-camera. I execute this command to generate the APK: gradlew cleanĮxecution failed for task ':react-native-device-info:verifyReleaseResources'.Ĭom.ProcessException: Failed to execute aapt error: failed parsing overlays.(Solved) for now in your top-level gradle.properties file add this line: android.enableAapt2false which essentially uses the old aapt for resources. I have created a new project with react-native with few packages (react-native-camera, react-native-device-info, react-native-elements, react-native-geocoder, react-native-qrcode-scanner, react-native-vector-icons, react-navigation) but I cannot figure out why it doesn't build. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |