Skip to content

Android can't build after upgrade gradle to 4.4 and tools.build:gradle to 3.1.0 #22196

Closed
@WCChimiiz

Description

@WCChimiiz

Use https://github.com/react-native-community/discussions-and-proposals to propose changes or discuss feature requests. This helps us ensure bug reports and regressions are given the priority they require.

You may also use https://discuss.reactjs.org/ for discussions on topics that are not necessarily served by the Bug Report template.


For Discussion

I upgraded RN to 0.56 from 0.55.4, gradle to 4.4 from 3.5, build tools to 3.1.0 from 2.3.0

I run some thing to generate signed apk.
./gradlew clean assembleRelease

I got error.

BUILD SUCCESSFUL in 3m 24s
535 actionable tasks: 481 executed, 54 up-to-date
cp: android/app/build/outputs/apk/app-release.apk: No such file or directory
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

but when I run react-native run-android it fine. I can start app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions