Skip to content

APK filename and buildpath hardcoded in capacitor/cli #4740

@mrambow

Description

@mrambow

Hi,

we're using ionic 5 with capacitor 3 and having difficulties to get the livereload to work for our debug app.
We get following error from capacitor run android --livereload:
native-run Caught fatal error: [Error: ENOENT: no such file or directory, open 'MyProjectPath\android\app\build\outputs\apk\debug\app-debug.apk']

After some digging (and failing to understand the gradle config build steps) I saw following lines in the capacitor run code:

const apkName = 'app-debug.apk';

const buildOutputDir = `${appDir}/build/outputs/apk/debug`;

Is there any possibility to change the name of the APK and the build path from the outside?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions