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.
**UPDATE** *Original question is about Angular 2 CLI. This doesn't work for curent Angular version!*

1. Run `ng init --routing`
2. And answer **no** every question from CLI.
By this way you will get *app-routing.module.ts*.
3. Add `import { AppRoutingModule } from './app-routing.module';`

and `imports: [AppRoutingModule]` to your *app.module.ts*

4. **Profit!** You get the same routing you would get if you would create routing with Angular CLI from the start.