Error on running project in android device

I tried the command ionic platform add android ,but i got the error:-

Platform command is no longer available.

then after that I ran the command-
ionic cordova platform add android.

it now gives the error-

plugin.run is not the function-

how should i proceed further to run the project on android device

Ionic version-3.3.0

I have also updated cordova and ionic

Hello,

Cannot see the images.

Is it visible now?

can you output ionic info and cordova info?

Maybe tomorrow will be the day I can get through without encountering text posted as an image.

1 Like

Cordova CLI:7.0.1
Ionic Framework Version :3.1.1
Ionic CLI version 3.0.0-alpha.106
OS :windows 7
node Version-v6.10.3
Xcode Version :not installed.
ios-deploy version- not installed
ios-sim-version :- not installed

following is the CMD :-

Microsoft Windows [Version 6.1.7600]
Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\jmd>cd summer-ionic

C:\Users\jmd\summer-ionic>ionic run android --device
The run command is no longer available. To find out more about the equivalent pl
ease run:

ionic cordova:run --help

C:\Users\jmd\summer-ionic>ionic cordova run android --device
TypeError: plugin.run is not a function
at Object. (C:\Users\jmd\AppData\Roaming\npm\node_modules\ionic\d
ist\ionic.js:11097:26)
at next (native)
at fulfilled (C:\Users\jmd\AppData\Roaming\npm\node_modules\ionic\dist\ionic
.js:11056:58)

C:\Users\jmd\summer-ionic>ionic cordova run android
TypeError: plugin.run is not a function
at Object. (C:\Users\jmd\AppData\Roaming\npm\node_modules\ionic\d
ist\ionic.js:11097:26)
at next (native)
at fulfilled (C:\Users\jmd\AppData\Roaming\npm\node_modules\ionic\dist\ionic
.js:11056:58)

C:\Users\jmd\summer-ionic>ionic build android --prod --release
The build command is no longer available. To find out more about the equivalent
please run:

ionic cordova:build --help

C:\Users\jmd\summer-ionic>ionic cordova build android --prod --release
TypeError: plugin.run is not a function
at Object. (C:\Users\jmd\AppData\Roaming\npm\node_modules\ionic\d
ist\ionic.js:11097:26)
at next (native)
at fulfilled (C:\Users\jmd\AppData\Roaming\npm\node_modules\ionic\dist\ionic
.js:11056:58)

C:\Users\jmd\summer-ionic>clear
’clear’ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\jmd\summer-ionic>cd…

C:\Users\jmd>clear
’clear’ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\jmd>clr
’clr’ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\jmd>cd summer-ionic

C:\Users\jmd\summer-ionic>ionic platform add android
The platform command is no longer available. To find out more about the equivale
nt please run:

ionic cordova:platform --help

C:\Users\jmd\summer-ionic>ionic cordova platform add android
TypeError: plugin.run is not a function
at Object. (C:\Users\jmd\AppData\Roaming\npm\node_modules\ionic\d
ist\ionic.js:11097:26)
at next (native)
at fulfilled (C:\Users\jmd\AppData\Roaming\npm\node_modules\ionic\dist\ionic
.js:11056:58)

C:\Users\jmd\summer-ionic>ionic platform build android
The platform command is no longer available. To find out more about the equivale
nt please run:

ionic cordova:platform --help

C:\Users\jmd\summer-ionic>ionic cordova platform build android
TypeError: plugin.run is not a function
at Object. (C:\Users\jmd\AppData\Roaming\npm\node_modules\ionic\d
ist\ionic.js:11097:26)
at next (native)
at fulfilled (C:\Users\jmd\AppData\Roaming\npm\node_modules\ionic\dist\ionic
.js:11056:58)

C:\Users\jmd\summer-ionic>ionic info

Your system information:

Cordova CLI: 7.0.1
Ionic Framework Version: 3.1.1
Ionic CLI Version: 3.0.0-alpha.106
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.10.3
Xcode version: Not installed

C:\Users\jmd\summer-ionic>cordova info
Collecting Data…

Node version: v6.10.3

Cordova version: 7.0.1

Config.xml file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>


CheckBook App
An awesome Ionic/Cordova app.
Vi
thika Gupta
























<icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"

/>






















































Plugins:

cordova-plugin-console,cordova-plugin-device,cordova-plugin-splashscreen,cordova
-plugin-statusbar,cordova-plugin-whitelist,ionic-plugin-keyboard

No Platforms Currently Installed

C:\Users\jmd\summer-ionic>

You are still using an ancient ALPHA version of the CLI. I already told you in another topic that you should update this as it is unstable, broken, old and will cause problems - like that the project doesn’t run in Android devices.

Also for code or output formatting:
Please edit your post and use the </> button above the post input field to format your code or error message or wrap it in ``` (“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

The problem has been resolved.

How? Please share the solution for future readers.

<div class="help-block" *ngIf="display.help">
		<div class="row-header">Checkbook Register</div>
		<div class="help-body">
			<p>
			Sample Check Book Register comprising of Sample Register sheet is an example Check Book Register to understand the Check Book Register application. The focus of the Sample sheet is to help user understand how Check Book Register should be maintained by a user. The user can also remove the sample values individually by clicking on cross button, and can maintain it as a separate Check Book Register for the family members or business partner simultaneously.
			</p><br>

			<p>
			Check Book Register comprising of Check Book Register sheet is for maintaining for maintaining transaction records for your enterprise or personal use.
			</p><br>

			<p>Explanation of tables in Sample and Check Book Register sheets.</p>
		</div>
			<table>
				<tr>
					<td>Column Name</td>
					<td>Description</td>
				</tr>
			
		
			
				<tr>
					<td>Date</td>
					<td>Date of transaction. The date when the payment is due or the date when the payment is received.</td>
				</tr>
			
		

			
				<tr>
					<td>Num</td>
					<td>Type of transcation</td>
				</tr>
	
			
	
				<tr>
					<td>Description</td>
					<td>Details of the Description</td>
				</tr>
		
			
			
				<tr>
					<td>R</td>
				
					<td>R is for Reconsile.When balancing your CheckBook,add an R in this column to indicate that the transaction is correct,and reconciled with your bank statement</td>
				</tr>
				

			
				<tr>
					<td>Withdrawal,Payment</td>
					<td>Amount Withdrawn</td>
				</tr>

			
	
				<tr>
					<td>Deposit,Credit</td>
					<td>Amount Deposited</td>
				</tr>
		
						
				<tr>
					<td>Balance</td>
					<td>Account Balance</td>
				</tr>
				</table>

		
	
		
		</div>

	<!-- Display the sample block here -->
	
	<div class="sample-block" *ngIf="display.sample">
		<ion-item>
		<ion-label>Date</ion-label>
			<ion-input type="text" [(ngModel)]="entry.date" name="Date"></ion-input>
		</ion-item>
		<ion-item>
		<ion-label>Num</ion-label>
			<ion-input  [(ngModel)]="entry.num" name="Num"></ion-input>
		</ion-item>
		<ion-item>
		<ion-label>Description</ion-label>
			<ion-textarea [(ngModel)]="entry.description" name="Description"></ion-textarea>
		</ion-item>
		<ion-item>
		<ion-label>R</ion-label>
			<ion-input [(ngModel)]="entry.r" name="R"></ion-input>
		</ion-item>
		<ion-item>
		<ion-label>Withdraw</ion-label>
			<ion-input [(ngModel)]="entry.withdraw" name="Withdraw"></ion-input>
		</ion-item>
		<ion-item>
		<ion-label>Deposit</ion-label>
			<ion-input [(ngModel)]="entry.deposit" name="Deposit"></ion-input>
		</ion-item>
		<button ion-button type="submit" (click)="logEntry()">Add Entry</button>
</div>
	

	<!-- Display the help block here -->
	<div class="checkbook-block" *ngIf="display.checkbook">
		<div class=" header">Checkbook Register</div>
		
			
				<ion-row class="row-header">
				<ion-col>Date</ion-col>
				<ion-col>Num</ion-col>
				<ion-col>Description</ion-col>
				<ion-col>R</ion-col>
				<ion-col>Withdrawal, Payment (-)</ion-col>
				<ion-col>Deposit, Credit (+)</ion-col>
			<ion-col>Bank Reconcilation</ion-col>
				<ion-col>Balance</ion-col>
			
			</ion-row>
		
			<br><br>
		
			<ion-row *ngFor='let entry of register.checkbook'>
				<ion-col>{{ entry.date }} </ion-col>
				<ion-col>{{ entry.num }} </ion-col>
				<ion-col>{{ entry.description }} </ion-col>
				<ion-col>{{ entry.r }} </ion-col>
				<ion-col>{{ entry.withdraw }} </ion-col>
				<ion-col>{{ entry.deposit }} </ion-col>
				<ion-col> {{entry.bank}}</ion-col>
				<ion-col>{{ entry.balance }} </ion-col>
			</ion-row>
		
	</div>


1 Like

shared my solution…
I made changes in my .html file,where I used ion-grid in wrong way,using ion-col and ion-row works well and no problem in layout now.
We should avoid td and tr…