Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular example fails to build for android #5

Open
JonathanRangelB opened this issue Sep 22, 2022 · 1 comment
Open

Angular example fails to build for android #5

JonathanRangelB opened this issue Sep 22, 2022 · 1 comment

Comments

@JonathanRangelB
Copy link

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 🍻

@GhadaAJIMI
Copy link

Hi I had a similar error and I can't find a solution
image
can anyone help plz ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants