Skip to content

Issue with finding correct apk name with 4.0.0 template. #950

@Plamen5kov

Description

@Plamen5kov

Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?

Yes

Tell us about the problem

With the removal of "plugins as flavors" in the android-runtime project template in 4.0.0 the following has changed:
The final default .apk name has changed from: <project-name>-<build-type>.apk to app-<build-type>.apk

With the update of the android plugin for gradle from 2.3.3 to 3.0.1 the following has changed:
The final .apk file is moved from <project_name>/platforms/android/(app/)outouts/apk/ folder to <project_name>/platforms/android/(app/)outouts/apk/<build-type>/ folder.

Please provide the following version numbers that your issue occurs with:

  • CLI: up to 3.4.2
  • Cross-platform modules: irrelevant
  • Runtime(s): up to 3.4.1
  • Plugin(s): irrelevant

Did the error happen while the app was being constructed? (buildtime error)

yes - build-time error (cli can't find apk file to install to device)

Did the error happen while the app was executing? (runtime error)

no

Please tell us how to recreate the issue in as much detail as possible.

Use CLI 3.4.2 with tns-android@next and tns run android

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions