所以当我运行时:../../latest-cli/nativescript-cli/bin/tns livesync android --watch
该应用程序创建 2 个图标(2 个应用程序)。第一个有效,第二个给出错误(cannot load module app/main.js
)。
这是什么原因?我需要工作的那个。
谢谢!
所以当我运行时:../../latest-cli/nativescript-cli/bin/tns livesync android --watch
该应用程序创建 2 个图标(2 个应用程序)。第一个有效,第二个给出错误(cannot load module app/main.js
)。
这是什么原因?我需要工作的那个。
谢谢!
确保在您的 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>