0

所以当我运行时:../../latest-cli/nativescript-cli/bin/tns livesync android --watch

该应用程序创建 2 个图标(2 个应用程序)。第一个有效,第二个给出错误(cannot load module app/main.js)。

这是什么原因?我需要工作的那个。

谢谢!

4

1 回答 1

1

确保在您的 AndroidManifest.xml 中没有两个

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

如果是这种情况,您可以将其中一个更改为

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
于 2016-07-19T18:29:23.790 回答