Skip to content

Android Studio integration #876

@Plamen5kov

Description

@Plamen5kov

problem
When an android project is built with the CLI, it can't be opened in Android Studio.

solution
In order for a user to open a project prepared with the CLI in Android Studio, we need to change the user project template.

benefits

  • Android Studio can be used for the publishing process
  • The user project can be debugged more easily
  • prerequisite for integrating the android-runtime in native application

expected result
The user should be able to open the <app_name>/platforms/android project in Android Studio once the project is prepared by cli: tns prepare android, then run the application.

how to test

  • tns create cliapp (--ng)
  • cd cliapp
  • tns platform add android@next
  • tns prepare android
  • open cliapp/platforms/android/ in Android Studio >=2.3.3 (tested with 2.3.3 and 3.0.0)
  • run in Android Studio
  • application should build and run ok

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions