Problem building AngularJS webapp to android on Cordova

I have a webapp made with HTML, CSS and AngularJS.

I host it on my own server and everything works perfectly.

I installed the cordova, created a project and added the files related to the webapp inside folder www.

Running the app from the command:

cordova run browser

everything works perfectly.

When running:

cordova run android

the apk is built. I uploaded this apk to an android and the app just doesn’t work.

Here is the index.html:

 <!DOCTYPE html>
<html lang="pt" ng-app="myapp">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Exemple</title>

          <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.2/angular.js"></script>

          <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
          <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

          <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/1.0.20/angular-ui-router.js"></script>


          <!-- criação do app -->
          <script src="app/app.js"></script>

          <!-- definição das rotas -->
          <script src="routes/routes.js"></script>

          <!-- controllers do app -->
          <script src="controller/DashController.js"></script>
          <script src="controller/DashPainelController.js"></script>  

          <!-- services do app -->
          <script src="services/isAuthenticated.js"></script>

</head>
<body ng-controller="DashController">
  <div>
      <a class="navbar-brand" ng-hide="habilitabotao" href="/">Home</a>
  </div>

  <div ui-view></div>
</body>
</html>

I believe that the app is not finding the files referenced in index.html, as the index.html Home tag is loaded, but the html and the controller present in the route file is not loaded.

Does anyone know what can cause this problem?

Any help is most welcome.

Thank you!

Source: New feed
Source Url Problem building AngularJS webapp to android on Cordova