Skip to content

Aapt errors when building release apk if using RNPaystack and React Navigation #13

@lordkiz

Description

@lordkiz

@tolu360 As it stands, it is impossible to generate a release variant if using this react-native-paystack with react navigation.
This is because react-native-paystack requires having to set android.enableAapt2=true else you will get these errors:

ERROR: In <declare-styleable> ForegroundView, unable to find attribute foreground
ERROR: In <declare-styleable> ForegroundView, unable to find attribute foregroundGravity
ERROR: In <declare-styleable> ForegroundView, unable to find attribute foregroundInsidePadding

Meanwhile you will get this common error
arising from react navigation \android\app\build\intermediates\res\merged\release\drawable-hdpi\node_modules_reactnavigation_src_views_assets_backicon.png: error: uncompiled PNG file passed as argument. Must be compiled first into .flat file.. if you have android.enableAapt2=true in your gradle.properties. (This temporary fix to this is changing to android.enableAapt2=false in gradle.properties)

react-native-paystack #9
react-navigation #3097

Any help will be greatly appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions