Reputation: 1834
So when i run: ../../latest-cli/nativescript-cli/bin/tns livesync android --watch
the app create 2 icons( 2 apps ).
The first one works, the second one gives error( cannot load module app/main.js
).
What could couse this ? I need the working one.
Thanks!
Upvotes: 0
Views: 60
Reputation: 128
Make sure in your AndroidManifest.xml that you don't have two
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
If thats the case you can change one of them to
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
Upvotes: 1