Question: How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android.

[![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)

Answer: 
I found the simplest way so far. I know this is already answered and accepted also but it is not working in the current scenarios because `ng init` is [removed](https://github.com/angular/angular-cli/blob/ed5f47dc22d5eb4a5d4b4ae2c8f7cb0ec1a999f3/CHANGELOG.md) so if you have forgotten to add routing while creating new project than you can add routes to existing project as following steps. Hope it will be helpful.

First of all add `app-routing.module.ts` file in your src --> app folder

**app-routing.module.ts** file would be like this

```
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home/home.component';     // Add your component here
import { AboutComponent } from './about/about.component';  // Add your component here

//This is my case 
const routes: Routes = [
    {
        path: '',
        component: HomeComponent
    },
    {
        path: 'about',
        component: AboutComponent
    }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }

```

Then **Import** `app-routing.module.ts` file in `app.module.ts` file as follow.

**app.module.ts**

```
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module'; // Added here

```

Now you will be able to perform routing task.
it is not explain if you currently has some router declared in your application, any way you can add routing in any moment. 

It is not possible using the command --**ng int --routing** because was eliminated. and the routing option is only available when you running the new command, that create a new solution.

But you can create manually it. if you have some router in your app.module or none, you can follow the step described here to generate it:
[Implementing routing in separate module in angular](https://www.youtube.com/watch?v=LEB9RUCM1m8&list=PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_&index=19)