Quantcast
Channel: Ionic Forum - Latest topics
Viewing all 70435 articles
Browse latest View live

The number of method references in a .dex file cannot exceed 64K

$
0
0

@obinnae wrote:

My V3 app code worked fine when testing on a device via “ionic cordova run android”. But all of a sudden, in doing a build, I’m getting the error

The number of method references in a .dex file cannot exceed 64K.

and I can’t do much at this point. Been googling for answers but not much luck.

Any idea how to fix this?

Posts: 1

Participants: 1

Read full topic


Check network status using network native not working

$
0
0

@aligassan wrote:

I am working on ionic 4 project. My project is getting data json from url . l am try to use Network native for ionic to check internet connections for my app .But l got nothing to show. No data and no alert to show .

 constructor(private http: HTTP, public loadingController: LoadingController,private network: Network,
   public alertController : AlertController, public platform : Platform) {


    // watch network for a disconnection
    let disconnectSubscription = this.network.onDisconnect().subscribe(() => {

      this.AlertNet()

    });



    // watch network for a connection
    let connectSubscription = this.network.onConnect().subscribe(() => {
      console.log('network connected!');


      this.getData()

      setTimeout(() => {
        if (this.network.type === 'wifi') {
          console.log('we got a wifi connection, woohoo!');
        }
      }, 3000);
    });




       }

      async getData() {


          const loading = await this.loadingController.create({
            message: 'Loading'
          });
          await loading.present();
          this.http.get('/v1/airport.json?code=krt', {}, {})
          .then(data => {

            this.test = JSON.parse(data.data);
            const parsed = JSON.parse(data.data);


          }), err=>{
            this.test =err
            loading.dismiss()
          }



      }


     async AlertNet(){

      const alert = await this.alertController.create({
        header: 'Alert',
        subHeader: 'No internet',
        message: 'You do not have an Internet connection. Please check your connection status',
        buttons: [{
          text: "Ok",
          handler: () => { this.platform.backButton.subscribe(()=>{
            navigator['app'].exitApp();
        });
       }
        }]    
        });

      await alert.present();

     }

Posts: 1

Participants: 1

Read full topic

Could not generate downloadurl

$
0
0

@jimmyblack wrote:

I’m using this to try to get url into my real time database at firebase, but I only could store is time, path and content type, no url. The error is the 0 is undefined. Need help here, urgent. Thanks in advanced
This is my data.ts code.

import { Injectable } from '@angular/core';
import { AngularFireDatabase } from 'angularfire2/database';
import firebase from 'firebase/app';
import { AngularFireStorage, AngularFireUploadTask } from 'angularfire2/storage';
import 'rxjs/Rx'
 
@Injectable()
export class DataProvider {
 
  constructor(private db: AngularFireDatabase, private afStorage: AngularFireStorage) {
    
   }
 
  getFiles() {
    let ref = this.db.list('files');
 
    return ref.snapshotChanges().map(changes => {
      return changes.map(c => ({ key: c.payload.key, ...c.payload.val() }));
    });
  }
 
  uploadToStorage(information): AngularFireUploadTask {
    let newName = `${new Date().getTime()}.txt`;
 
    return this.afStorage.ref(`files/${newName}`).putString(information);
  }
 
  storeInfoToDatabase(metainfo) {
    let toSave = {
      created: metainfo.timeCreated,
      url: metainfo.downloadURL[0],
      fullPath: metainfo.fullPath,
      contentType: metainfo.contentType
    }
    return this.db.list('files').push(toSave);
  }
 
 
  deleteFile(file) {
    let key = file.key;
    let storagePath = file.fullPath;
 
    let ref = this.db.list('files');
 
    ref.remove(key);
    return this.afStorage.ref(storagePath).delete();
  }
}

Posts: 1

Participants: 1

Read full topic

Question with bypassSecurityTrustHtml [innerHTML]

$
0
0

@min2kor wrote:

this is my code

“<div [innerHTML]=“prodContent”>”

and

“this.prodContent = this.domSanitizer.bypassSecurityTrustHtml(this.product.content);”

in prodContent , it has html code.
for example,
“<p>text Showing</p><mg src=”//google.com/img/text*.jpg"><p>this is image.</p>"

when i am checking ionic on Chrome or website (localhosting).
Image shows well .

however, image is not showing on App.
i think “//” is not support “http://”.

how can i show image on App ?
please help me.

thanks.

Posts: 1

Participants: 1

Read full topic

Read Data from .html to .ts file

$
0
0

@salad-gg wrote:

//in home.ts file
@Input(“UserData”) UserData: User[ ];

I have UserData that that is read from a different page as above. The data is available and being used in the home.html page BUT, when I console I get undefined.

Since it’s available at html level, how can I read it in the home.ts file?
console.log(UserData);

Posts: 2

Participants: 2

Read full topic

Ionic refresh between tabs

Ion-radio sub-list should checked with previous selection

$
0
0

@sekharkumar wrote:

i have a list contains two items each item contains list of radio items. if i am selected one radio-item and go to the second item and selected one more radio item now going back to my first item sub-list it should checked with previous selection.

image

Posts: 2

Participants: 1

Read full topic

Ionic Select list issue please help me out

$
0
0

@flycoders_sourav wrote:

I have a drop down menu When the user clicks on dropdown menu , after that open a modal, and user can select a country name from this list and this selected value show in dropdown menu how can i do that please help me out
Below my ui recorded screenshots please check and help me

Any help or source would be highly appreciated
Thanks in advance

Posts: 1

Participants: 1

Read full topic


How to solve the signal SIGABRT thread in xcode

How to receive post data from external redirects while maintaining login state in a mobile app(ionic)

$
0
0

@ionicdjangodev wrote:

This is an ionic mobile app.

I got confusion regarding integration with third party applications.

One such third party service works like this:

Our site redirects(using post request) to third party and people enter things like credit card in that site and it will redirect to our site with post request/data.

I tried using in app browser in ionic which successfully sent post request to third party site. But when it redirected back, if it redirects with get parameters, I would have captured them. But it is redirecting with post data and seems like ionic cannot capture post data.

So, thinking of capturing using server urls. But when I do with server urls, how do I maintain login state? Because people will be logged into the app, not server. So, this way, people might be asked to login to the server again?

So, what is the correct way to go here? Also, should I use token authentication or session authentication to make this work?

I am using Django backend for api by the way.

Thanks.

Posts: 1

Participants: 1

Read full topic

How to style ion-button -> button:before element in Ionic4

$
0
0

@distante wrote:

I am migrating an Ionic3 app to Ionic4 and I am having a hard time translating some of the CSS rules there.

For example, in Ionic3 I could style the :before or :after or an <button ion-button> element with button[ion-button]:before.

Now the <button> element is inside the Shadow DOM of <ion-button> and I am not able to put an :before inside the <button>. Is this possible with Ionic4 ?

Posts: 1

Participants: 1

Read full topic

Ionic 4: Simple starter-like app with tabs gets 'horrible' performance result in Lighthouse

$
0
0

@christianweyer wrote:

Hi all,

I have a very simple Ionic 4 app, based on the tab starter. The app (built with --prod) is hosted on Firebase Hosting.
When running Lighthouse in latest Chrome I get these results:

Hm, any idea what could be the intrinsic issue here with performance? The app does not do any remote call to APIs, only the built-in lazy loading of modules, anything else is handled locally.

Something seems really wrong:

Thanks!

Posts: 1

Participants: 1

Read full topic

Failed to load index.html try again later issue in ionic 4

$
0
0

@HarinderSingh wrote:

I have strange issue.
I have globally installed ionic 4 latest version.

When I create ionic 4 project and run in browser using ionic serve it works fine, everything is fine.

But
When i try to create ionic 3 project using this below command:
ionic start myApp blank --type=ionic-angular
It successfully creates app but when I run it using ionic serve then browser shows try again later.
CLI shows Failed to load index.html
I see no index.html file is generated in www folder but it is available in src folder.

I tried all things like npm update, npm install, delete node_modules folder. Nothing helps. Always shows error. Screenshots attached.

Posts: 1

Participants: 1

Read full topic

Ionic DevApp Not Finding App

$
0
0

@mjdn wrote:

Hi All,

I’m currently learning Ionic and following the Your First Ionic App - Framework V4 guide, https://ionicframework.com/docs/developer-resources/guides/first-app-v4/intro. When I run ionic serve and launch the DevApp on my iPhone, it never automatically finds it. I have to enter the address manually in order to view the app. Is that normal? Both devices are on the same network.

macOS Mojave - 10.14.3
Ionic CLI - 4.10.2
Ionic DevApp on iOS - 02252f5

Posts: 1

Participants: 1

Read full topic

Ionic 4 and Rest Call

$
0
0

@Lona wrote:

Hi,

Trying to run a app on my Iphone. Its a simple app with one REST call.

Do I need to use the Native HTTP or can I use the Angular HttpClient? It did not work with the latter (worked fine on the webpage and emulator), and me thinking I needed to use HTTP when running on the device.

Is this correct?

Posts: 1

Participants: 1

Read full topic


Problem with ionic cordova build browser

$
0
0

@NeyBarbosa wrote:

Hi!

I try run my ionic project that is hosted on a remote server (Debian) like a website but when I run the command "ionic cordova build browser --prod" I get this error:

error

Global packages:

Ionic CLI : 4.10.2
Cordova CLI : 8.1.2

Local packages:

@ionic/app-scripts : 3.2.2
Cordova Platforms  : browser 5.0.4
Ionic Framework    : ionic-angular 3.9.2

System:

Node       : v11.9.0
OS         : Debian 9 x64 (stretch)
npm        : 6.5.0

Thanks for your attention. I’m looking forward to your reply.

Posts: 1

Participants: 1

Read full topic

Cannot create an app with Ionic 3

$
0
0

@elaias wrote:

Hi everyone!

I’m not able to create a new app with Ionic 3.20.1
Once I’ve chosen the template the console hangs and nothing else happens. Only an empty folder is created. BUT It’s going well with Ionic 4.

Could please anyone help me with this issue? I really need to use Ionic 3, but how to fix this?

Ionic 3.20.1
Cordova 8.1.2
Node.js 10.14.2

Thank you!

Posts: 1

Participants: 1

Read full topic

Android web view Block URL by Whitelist

$
0
0

@behrooz2 wrote:

Hi friends,

I have been frustrated by running my app on android. I use latest cordova-plugin-ionic-webview (3.1.2) and have proper whitelisting in my config file. But when I launch my app on android device, it seems like all my external URLs get blocked:

02-09 12:05:01.071 31101-31223/com.ionicframework.fitopedia341280 W/SystemWebViewClient: URL blocked by whitelist: https://MYAPP.appspot.com/BLAH/

Here is my Ionic Info:

Ionic:

   ionic (Ionic CLI)  : 4.10.2 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 6.4.0, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 12 other plugins)

System:

   Android SDK Tools : 26.1.1 (/Users/behrooz/Library/Android/sdk/)
   NodeJS            : v9.11.1 (/usr/local/Cellar/node/9.11.1/bin/node)
   npm               : 5.10.0
   OS                : macOS Mojave
   Xcode             : Xcode 10.1 Build version 10B61

and here is my cordova info including config.xml:


Node version: v9.11.1

Cordova version: 8.1.0

Config.xml file: 

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.ionicframework.fitopedia341280" version="0.0.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>Fitopedia</name>
    <description>Awesome app.</description>
    <author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
    <content src="index.html" />
    <access origin="*" />
    <allow-navigation href="http://ionic.local/*" />
    <allow-navigation href="https://MYAPP.appspot.com/*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
        <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
        <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
        <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
        <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
        <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
        <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
        <splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
        <splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
        <splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
        <splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
        <splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
        <splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
        <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
        <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
        <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
        <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
        <splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
        <splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        <icon height="57" src="resources/ios/icon/icon.png" width="57" />
        <icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
        <icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
        <icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
        <icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
        <icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
        <icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
        <icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
        <icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
        <icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
        <icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
        <icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
        <icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
        <icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
        <icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
        <icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
        <icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
        <icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
        <splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
        <splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
        <splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
        <splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
        <splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
        <splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
        <splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
        <splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
        <splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
        <splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
        <splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
        <splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
        <icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
        <splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
        <edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
            <string>To share photos on Fitopedia</string>
        </edit-config>
        <edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
            <string>To share photos on Fitopedia</string>
        </edit-config>
    </platform>
    <preference name="AllowInlineMediaPlayback" value="true" />
    <preference name="webviewbounce" value="false" />
    <preference name="UIWebViewBounce" value="false" />
    <preference name="DisallowOverscroll" value="true" />
    <preference name="android-minSdkVersion" value="16" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
    <plugin name="cc.fovea.cordova.purchase" spec="^7.1.0">
        <variable name="BILLING_KEY" value="BLAH" />
    </plugin>
    <feature name="CDVWKWebViewEngine">
        <param name="ios-package" value="CDVWKWebViewEngine" />
    </feature>
    <feature name="StatusBar">
        <param name="ios-package" onload="true" value="CDVStatusBar" />
    </feature>
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="3000" />
    <plugin name="cordova-plugin-camera" spec="^3.0.0">
        <variable name="CAMERA_USAGE_DESCRIPTION" value="To Share Photos on Fitopeida" />
        <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="To Share Photos on Fitopeida" />
    </plugin>
    <plugin name="cordova-plugin-device" spec="^1.1.7" />
    <plugin name="cordova-plugin-facebook4" spec="^1.9.1">
        <variable name="APP_ID" value="1442128302542871" />
        <variable name="APP_NAME" value="Fitopedia" />
    </plugin>
    <plugin name="cordova-plugin-file-transfer" spec="^1.7.0" />
    <plugin name="cordova-plugin-splashscreen" spec="^4.1.0" />
    <plugin name="cordova-plugin-statusbar" spec="^2.3.0" />
    <plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
    <plugin name="cordova-sqlite-storage" spec="^2.1.4" />
    <plugin name="cordova-plugin-x-socialsharing" spec="5.4.1" />
    <plugin name="cordova-plugin-ionic-keyboard" spec="2.1.3" />
    <plugin name="cc.fovea.cordova.purchase" spec="^7.2.6" />
    <plugin name="cordova-plugin-inappbrowser" spec="3.0.0" />
    <plugin name="cordova-plugin-ionic-webview" spec="^3.1.2">
        <variable name="ANDROID_SUPPORT_ANNOTATIONS_VERSION" value="27.+" />
    </plugin>
    <engine name="android" spec="6.4.0" />
    <engine name="ios" spec="4.5.5" />
</widget>


Plugins: 

cc.fovea.cordova.purchase,cordova-plugin-camera,cordova-plugin-device,cordova-plugin-facebook4,cordova-plugin-file,cordova-plugin-file-transfer,cordova-plugin-inappbrowser,cordova-plugin-ionic-keyboard,cordova-plugin-ionic-webview,cordova-plugin-splashscreen,cordova-plugin-statusbar,cordova-plugin-whitelist,cordova-plugin-x-socialsharing,cordova-plugin-youtube-video-player,cordova-sqlite-storage,es6-promise-plugin,ionic-plugin-keyboard

Note everything is fine on IOS. And I think I this is prolly since I moved to ionic-cordova-web-view. Any help is much appreciated.

Posts: 1

Participants: 1

Read full topic

SplashScreenDelay Does Not Work

$
0
0

@meuserca wrote:

The SplashScreenDelay configuration has no effect running app on Android device (Pixel 3 XL). The splash screen displays for a second and the app is launched. I have tried adjusting the value with and without the --prod flag without success:

Ionic:

ionic (Ionic CLI) : 4.10.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.1
@angular-devkit/build-angular : 0.12.4
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.2.4
@ionic/angular-toolkit : 1.3.0

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 7 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/meusercx/Library/Android/sdk)
ios-deploy : 1.9.2
ios-sim : 6.1.2
NodeJS : v9.11.1 (/usr/local/bin/node)
npm : 6.7.0
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61

Posts: 1

Participants: 1

Read full topic

Error: Failed to fetch platform andriod.....plllzhelpme

$
0
0

@boucherit wrote:

What is the problem with me?
Please

G:\0projetsioni\ionic\websitetoapk\websitetoapk>ionic cordova build android
> ionic-app-scripts build --target cordova --platform android
[19:26:54]  ionic-app-scripts 1.3.12
[19:26:54]  build dev started ...
[19:26:54]  clean started ...
[19:26:54]  clean finished in 11 ms
[19:26:54]  copy started ...
[19:26:54]  transpile started ...
[19:27:01]  transpile finished in 6.88 s
[19:27:01]  preprocess started ...
[19:27:01]  deeplinks started ...
[19:27:01]  deeplinks finished in 19 ms
[19:27:01]  preprocess finished in 24 ms
[19:27:01]  webpack started ...
[19:27:02]  copy finished in 7.57 s
[19:27:19]  webpack finished in 18.12 s
[19:27:19]  sass started ...
[19:27:22]  sass finished in 2.71 s
[19:27:22]  postprocess started ...
[19:27:22]  removed unused font files
[19:27:22]  postprocess finished in 36 ms
[19:27:22]  lint started ...
[19:27:22]  build dev finished in 27.88 s
[19:27:36]  tslint: G:/0projetsioni/ionic/websitetoapk/websitetoapk/src/pages/ho
me/home.ts, line: 2
            'NavController' is declared but never used.

       L1:  import { Component } from '@angular/core';
       L2:  import { NavController ,Platform} from 'ionic-angular';
       L3:  import { InAppBrowser } from '@ionic-native/in-app-browser';

[19:27:36]  tslint: G:/0projetsioni/ionic/websitetoapk/websitetoapk/src/app/app.
component.ts, line: 5
            All imports are unused.

       L4:  import { SplashScreen } from '@ionic-native/splash-screen';
       L5:  import { InAppBrowser } from '@ionic-native/in-app-browser';

[19:27:36]  lint finished in 13.94 s
> cordova build android
cordova-android-support-gradle-release: Android platform: V6
cordova-android-support-gradle-release: No custom version found in config.xml -
using plugin default
cordova-android-support-gradle-release: Android platform: V6
cordova-android-support-gradle-release: No custom version found in config.xml -
using plugin default
ANDROID_HOME=D:\eclipse\adt-bundle-windows-x86-20140702\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121
Subproject Path: CordovaLib
Starting a new Gradle Daemon for this build (subsequent builds will be faster).

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
2.14.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
2.14.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
[ERROR] An error occurred while running subprocess cordova.

        cordova build android exited with exit code 1.

        Re-running this command with the --verbose flag may provide more
        information.


G:\0projetsioni\ionic\websitetoapk\websitetoapk>ionic info

Ionic:

   ionic (Ionic CLI)  : 4.10.2 (C:\Users\acer\AppData\Roaming\npm\node_modules\i
onic)
   Ionic Framework    : ionic-angular 3.5.0
   @ionic/app-scripts : 1.3.12

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 6.1.2
   Cordova Plugins       : no whitelisted plugins (8 plugins total)

System:

   NodeJS : v6.10.2 (C:\Program Files\nodejs\node.exe)
   npm    : 6.7.0
   OS     : Windows 7

Posts: 1

Participants: 1

Read full topic

Viewing all 70435 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>