Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Angular example fails to build for android #5

Open
@JonathanRangelB

Description

I had to open an issue since I can't push directoy to the repo.

Trying to run "ns run android" get this error:
image

The issue can be fixed quite easy, just need to add:

android:exported="true"

into activity tag located at tutorials\angular-tutorial\App_Resources\Android\src\main\AndroidManifest.xml

This is what it should look llike:

<!-- code before... -->
<activity
	android:name="com.tns.NativeScriptActivity"
	android:label="@string/title_activity_kimera"
	android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
	android:theme="@style/LaunchScreenTheme"
	android:exported="true">
	<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
	<intent-filter>
		<action android:name="android.intent.action.MAIN" />
		<category android:name="android.intent.category.LAUNCHER" />
	</intent-filter>
</activity>
<!-- code after...-->

Managed to run the demo app with that simple change.

Cheers 🍻

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

        AltStyle によって変換されたページ (->オリジナル) /