简体   繁体   English

Ionic Build 或 Ionic Run 构建错误的应用程序

[英]Ionic Build or Ionic Run builds the wrong app

I am trying to build or run an Ionic Cordova App.我正在尝试构建运行Ionic Cordova应用程序。 But it always builds a default app with playlists.但它总是构建一个带有播放列表的默认应用程序。

OS is Windows 10操作系统是 Windows 10

I do the following from my command prompt:我从命令提示符执行以下操作:

c:\users\martijn\documents\ionic start testapp blank

c:\users\martijn\documents\testapp\ionic run android

now it is building a different app then in my app directory.现在它正在构建一个不同的应用程序,然后在我的应用程序目录中。 When I do ionic serve I see the right app in my browser.当我做ionic serve时,我会在浏览器中看到正确的应用程序。 Can't figure out why running or building gives me a different app, I think it is a default example app.无法弄清楚为什么运行或构建会给我一个不同的应用程序,我认为它是一个默认的示例应用程序。

Can somebody help?有人可以帮忙吗?

See link here:请参阅此处的链接:

https://github.com/driftyco/ionic-cli/issues/1283 https://github.com/driftyco/ionic-cli/issues/1283

Appears you may have to delete the the last apk file from platforms\\android\\build\\outputs\\apk看来你可能需要从platforms\\android\\build\\outputs\\apk删除最后一个apk文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM