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

Animations not working with shake

$
0
0

@davidgear wrote:

Hello,

I have a problem using the Shake plugin ( https://ionicframework.com/docs/native/shake/ ) in my Ionic Application for an iOS and Android App.

I want a transform-animation ( transform: 'rotateY(180deg)' ) to start when device is shaken.
The animation works perfectly when triggering it by a click or by itself after waiting like 2 seconds.

I have a method, which changes the variable to trigger the animation:

@Component({
...
animations: [
    trigger('state', [
      state('active', style({
        transform: 'rotateY(180deg)'
      })),
      transition('* => active', animate('400ms ease'))
    ])
  ],
...
})
export class MyComponent {

  constructor( private shake: Shake, private platform: Platform ){
    if( this.platform.ready() === 'cordova' ){
      this.shake.startWatch(40).subscribe( 
        () => this.toggleState() 
      );
    }
  }

  toggleState() {
    this.state = this.state === 'inactive' ? 'active' : 'inactive';
  }

}

So by shaking my iPhone I get correct outputs in the Xcode debug console and the state-variable changes from inactive to active, but the rotateY-animation will not be shown.
By clicking a button with (click)="toggleState()" property, everything works perfectly.

Can anybody help me?

Posts: 1

Participants: 1

Read full topic


Scroll to specific position in the page

$
0
0

@gjord wrote:

Hy guys, I have a little issue.

I want to scroll my page a certain point, for example 100px to top.

I have this template:

<ion-content class="ion_content" #container>
	<ion-refresher (ionRefresh)="forceRefreshAll($event)">
      <ion-refresher-content></ion-refresher-content>
    </ion-refresher> 


    <div class="image__grid" *ngIf="!isListView()">		
        <div class="image__square" *ngFor="let photo of photos">
         			
         <img [defaultImage]="defaultImage" [lazyLoad]="photo.thumbPath" [offset]="offset" [scrollTarget]="container._scroll._el"
             imageViewer="photo.thumbPath"
            (close)="callbackAfterImageViewerCloses()" 
            (click)="unlockScreenOrientation()" />
        </div>
	</div>		

    <div *ngIf="isListView()">
        <div class="container_card" *ngFor="let photo of photos;">
			<h2 padding>{{ photo.author }} - {{ photo.createdAt | date : 'medium'}}</h2>
			<div class="container_photo">
				<div class="image__card">

                  <div class="image__square">
                  
                    <img [defaultImage]="defaultImage" [lazyLoad]="photo.thumbPath" [offset]="offset" [scrollTarget]="container._scroll._el"
                    imageViewer="photo.thumbPath"
                      (close)="callbackAfterImageViewerCloses()" 
                      (click)="unlockScreenOrientation()" />
                  </div>	
                
                </div>
			</div>
        </div>
	</div>
       
	<ion-infinite-scroll (ionInfinite)="doInfinite($event)">
		<ion-infinite-scroll-content></ion-infinite-scroll-content>
	</ion-infinite-scroll>
 
</ion-content>

My typescript class is:

export class PhotosPage {

  @ViewChild(Content) content: Content;

  constructor( ... ) { }

  ionViewWillEnter() {

    this.scrollToTop();
  }


  scrollTo() {
    this.content.scrollTo(0, 100 , 0 );
  }  

}

Just I enter in the page I scroll the content of 0px to horizontally, 100px vertically, with a duration of 0 seconds.

But, unfortunatelly, it doesn’t work…

Help me please

Posts: 1

Participants: 1

Read full topic

FCM notification tapped but not opening desired page

$
0
0

@paulhontzkma wrote:

I am using Ionic FCM and Laravel FCm package to send notifications to the app.

The token gets stored in the Database, The notification is received in the app too. The problem is when the app is in background and notification is tapped the specific page isn’t opening.

The code for handling notification tapped is taken from the Ionic docs:

console.log('This will print in all cases');
this.fcm.onNotification().subscribe(data => {
  console.log('this will will print when app in background', data);

  if (data.wasTapped) {
    console.log('This never gets printed', data);
    console.log("Received in background");
    this.nav.setRoot(CommunicationPage, { 'message_id': data.page_id });
  } else {
    console.log('Data: this will will print when app in background', data);
    this.nav.push(CommunicationPage, { 'message_id': data.page_id });
    console.log("Received in foreground");
  };
});

P.S: The notification is getting received including the payload (i.e page id to be opened) because when the app is on foreground I am able to push the screen to desired page.

Posts: 1

Participants: 1

Read full topic

Bluetooth readRSSI not working

$
0
0

@ItayR wrote:

Hi,

I’m trying to use Bluetooth Serial and read the RSSI data. I have no problem connecting, reading and writing data, however, readRSSI function simply returns “Invalid Action”.

Here’s the code:

			this.bluetoothSerial.readRSSI().then((success) => {
				console.log(success);
			}, (error) => {
			       console.log(error);
			});

That’s after importing bluetoothSerial and injecting it into the constructor. As I said, no issues with connecting to a device, reading and writing. Am I using the readRSSI function incorrectly?

Ionic Info:
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : not installed

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 25.2.5
Node              : v6.11.2
npm               : 3.10.10
OS                : Windows 8.1

Environment Variables:

ANDROID_HOME : C:\Program Files (x86)\Android\android-sdk

Misc:

backend : legacy

Posts: 1

Participants: 1

Read full topic

Firebase issue

$
0
0

@flycoders_sourav wrote:

I’m try to upload image to the firebase but showing below error .

{
	"error": {   
	"code": 403,
	"message": "Permission denied. Could not perform this operation"
}
}

please help me out anyone
Thanks

Posts: 1

Participants: 1

Read full topic

Sound is not working in cordova-plugin-local-notification

$
0
0

@PallabTechno wrote:

Hi.

I am using
ionic - v
3.20.0
cordova - v
8.0.0

I added the plugin like.
ionic cordova plugin add cordova-plugin-local-notofication
AND
npm install --save @ionic-native/local-notification

And I am using the code

this.localNotifications.schedule({
text: ‘Please login and take a test’,
trigger:{every: “minute”},
led: ‘FF0000’,
sound: ‘file://resources/sounds/beep.mp3’,
vibrate: true,
wakeup : true,
lockscreen : true
});

Everything is working Properly But the sound is not working.
Vibration also working.

What should I do now? Can I play the default sound !!!

Please help me !!!

Thanks.

Posts: 1

Participants: 1

Read full topic

Diagnostic plugin issue on windows phone

$
0
0

@dhameergovind wrote:

Hi there

I am trying to install the windows platform to my ionic app. Everything seems to go fine until the diagnostic plugin([https://ionicframework.com/docs/native/diagnostic/])tries to get added. I receive the following error “error missing windows target version”. I made sure that I inserted this line into config.xml too. Any suggestions?

I went through the usuals of removing, re-adding platform etc.

Posts: 2

Participants: 1

Read full topic

When minimize the app all notifications disappear!

$
0
0

@wwyy wrote:

I’m building ionic 3 application to receive push notifications , I’m using “phonegap-plugin-push” , now if notification comes while app is foreground and I minimize the app all notifications disappear from the bar !!
any solution for this problem ?

Posts: 1

Participants: 1

Read full topic


IOS - Every action on IOS has delay

$
0
0

@constantinlucian wrote:

Hi All!
I am buiding an Ionic app and when I run on IOS , every action has delay (ion-slides, ion-item-sliding, scroll , left menu when is open - take i think 300ms to load the content).
I make ios build using : ionic cordova build ios --prod --aot --minifyjs --minifycss --optimizejs, and after run on device using Xcode.
I tried using cordova-plugin-ionic-webview, but application on ios run with delays.

Thanks.

Posts: 1

Participants: 1

Read full topic

Order a list by time (ionic v3 :/

$
0
0

@I_McGann wrote:

I want to order a list by date; is it possible to do this?
Here is the code of how I’m displaying my list currently in my html page

<ion-item *ngFor = “let reservation of reservationList$ | async”
detail-push navPush = “EditReservationPage”
[navParams]= “{reservation: reservation}”>
{{reservation.time}}

Posts: 1

Participants: 1

Read full topic

App Hangs after loading contacts (IOS only)

$
0
0

@akash705 wrote:

hi there i’m using this plugins for fetching contacts

and in android it is working correctly but in ios , APP hangs after loading contacts . Help me thanks in advance

Posts: 1

Participants: 1

Read full topic

Ionic inapp browser compatible with stream data

$
0
0

@yashwanth493 wrote:

I have a question related to ionic 3/angular 4 hybrid mobile app.

is it possible to view/display any memory stream/byte stream whichever mime type like .png/jpeg etc.,. from the api whatever i receive in ionic inapp browser? only the stream data?

or is it only intented to open the url’s? does it support memory stream data ?

Posts: 1

Participants: 1

Read full topic

6 month greenfield Ionic contract role in Birmingham, UK

$
0
0

@davidwoodrowg2 wrote:

My market leading client has a fantastic new opportunity for an Ionic Developer to join them on an initial 6 month contract, based fully on-site in Birmingham, UK.

This is a greenfield project engineering an mobile web app that will have a critical real-world impact.

Candidates must have proven experience of developing Ionic based applications, ideally targeted for Android. Additional general background in JavaScript and Angular2 development is of obvious benefit, as is previous experience in developing Web APIs.

Market rates.

Please send an up-to-date CV if interested for a full job spec.

david.woodrow@g2recruitment.com

Posts: 1

Participants: 1

Read full topic

Use "Refresher" in custom components, I am getting an error.

$
0
0

@rex19001 wrote:

 Uncaught Error: Template parse errors:
No provider for Content ("[ERROR ->]<ion-refresher (ionRefresh)="doRefresh($event)">

  <ion-refresher-content pullingIcon="" pullingText"): ng:///ComponentsModule/ListsComponent.html@0:0
    at syntaxError (compiler.js:485)
    at TemplateParser.parse (compiler.js:24668)
    at JitCompiler._parseTemplate (compiler.js:34621)
    at JitCompiler._compileTemplate (compiler.js:34596)
    at compiler.js:34497
    at Set.forEach (<anonymous>)
    at JitCompiler._compileComponents (compiler.js:34497)
    at compiler.js:34367
    at Object.then (compiler.js:474)
    at JitCompiler._compileModuleAndComponents (compiler.js:34366)

Posts: 1

Participants: 1

Read full topic

PickContact

$
0
0

@iboudino1991 wrote:

Hello everybody,
At the moment I am developing an application with ionic and I would like to know how to select only the contacts who have only one address in a phone.
Thank you.

Posts: 1

Participants: 1

Read full topic


Ionic v1: Pro.deploy.info() not resolving

$
0
0

@eriksie wrote:

Heya, I’m developing an app and am trying to set up the deploy API.

12      Pro.deploy.info().then(function(res){
13          $timeout(function(){
14              channelName = res.channel;
15          });
16      });`

The problem is, the promise never seems to resolve since line 13 isn’t reached. I’ve followed the instructions and copied the files from the NPM module to lib/, added a reference to it in index.html and Pro.init() in run(). The only error raised is “the cordova-plugin-ionic plugin is not installed” when tested on chrome, which (apparently?) is always the case when testing in a browser.

Posts: 2

Participants: 2

Read full topic

ViewChild inside ModalController component

$
0
0

@AkaSuap wrote:

Hello,
I would like to access my a viewChild inside a modal, but when I do :

@ViewChild('container', {read: ViewContainerRef}) viewContainer: ViewContainerRef;

inside my modal component it returns “undefined”.

I created my modal like this :


let modal = this.modalCtrl.create(ModalComponent, {element:element,componentLoader:this.componentLoader});
modal.present();

any ideas ?

Posts: 2

Participants: 2

Read full topic

Trouble to upload images with FileTransfer

$
0
0

@MowKette wrote:

Hi,

I’m trying to add a function to my application which allow the user to take a picture with his camera or from his smartphone to upload it as a profil picture.

I’ve picked this function from another project which is working great but isn’t from me but one of my colleague (he left).

I don’t know why since I’ve used the exact same function but the image uploaded look like this :

5a1fd1a89a6f09412b6a74d75a1fd1a89a6f09412b6a74d7.jpg

It will randomly start to corrupt the file, generally in the first quarter. One time, it worked but I can’t figure why.

  takePhoto(value){
   
    const options: CameraOptions = {
      quality: 75,
      destinationType: this.camera.DestinationType.DATA_URL,
      encodingType: this.camera.EncodingType.JPEG,
      mediaType: this.camera.MediaType.PICTURE,
      correctOrientation : true,
      allowEdit:true,
      targetWidth: 300,
      targetHeight: 300,
      sourceType : value
      

    }
    
    this.camera.getPicture(options).then((imageData) => {
      // imageData is either a base64 encoded string or a file URI
      // If it's base64:
      let base64Image = 'data:image/jpeg;base64,' + imageData;
      console.log(base64Image)
      //$("#imgProfil").attr("src",base64Image);
      
      const fileTransfer: FileTransferObject = this.transfer.create();
    
      this._zone.run(() => {
      this.avatar_path = base64Image;      
      });

    var targetPath = base64Image;
      var options = {
          fileKey: "avatar",
          fileName: this.user._id + ".jpg",
          chunkedMode: false,
          mimeType: "image/jpeg",
          headers: {
              //Connection: "close"
          }
      };
      
    fileTransfer.upload(targetPath,"http://XX.XXX.XXX.XX:90/add/photoandroid/" + this.user._id, options) .then((data) => {
      this.storage.set('photoProfilData',base64Image);
      this.events.publish('photoProfil');

      }, (err) => {

      })
      
      }, (err) => {
        this.presentToasti(err);
    });
  }

Posts: 1

Participants: 1

Read full topic

Help playing local audio via html5 audio?

$
0
0

@EvanW wrote:

Hey everyone,

I’ve been using the ionic native - native audio plugin to preload and play short audio files in my app, but the cordova-plugin that it’s based on is unmaintained and I’m hoping to move away towards html5 audio.

I don’t need background audio or controls, since the audio in my app is short 1-3 second clips. Is there any easy way to just play a short audio track on a button tap?

I’m trying to do something this

HTML:

<button (tap)="play1()">Button 1</button>
<button (tap)="play2()">Button 2</button>
<button (tap)="play3()">Button 3</button>

TS:

var audio1 = new Audio("assets/aud/audio1.mp3");
var audio2 = new Audio("assets/aud/audio2.mp3");
var audio3 = new Audio("assets/aud/audio3.mp3");

play1() {
audio1.play();
}

play2() {
audio2.play();
}

play3() {
audio3.play();
}

Is this anything close to a good solution? Anything that I need to look out for with respect to unloading the files from memory? Sorry if this is a dumb question but the documentation for html5 audio that I’ve found is all aimed at the web and I can’t find any examples for ionic specific implementations…

Posts: 2

Participants: 2

Read full topic

Crosswalk Ionic 3

$
0
0

@wechmac wrote:

Hi all,

I tried a lot of things to find a solution but I have always the same problem.
I can create an apk but i can’t install the apk on android 4.1 (Jelly bean) but it’s work with android 7, so I tried to add this plugin to my project: cordova plugin add cordova-plugin-crosswalk-webview
And I tried with: cordova plugin add cordova-android-support-gradle-release

But I have always the same problem, can someone help me please.

Thank you !

BUILD FAILED in 3m 1s
FAILED
32 actionable tasks: 2 executed, 30 up-to-date
(node:19944) UnhandledPromiseRejectionWarning: Error: /home/userpop/Documents/1Ionic/Animation2/platforms/android/gradlew: Command failed with exit code 1 Error output:
/home/userpop/.gradle/caches/transforms-1/files-1.1/xwalk_core_library-23.53.589.4.aar/998ad6e73c4a83f2863e08994d2ea9ed/res/values/dimens_03.xml:14:5-51: AAPT: error: resource android:attr/fontVariationSettings not found.

/home/userpop/.gradle/caches/transforms-1/files-1.1/xwalk_core_library-23.53.589.4.aar/998ad6e73c4a83f2863e08994d2ea9ed/res/values/dimens_03.xml:14:5-51: AAPT: error: resource android:attr/ttcIndex not found.

/home/userpop/Documents/1Ionic/Animation2/platforms/android/app/build/intermediates/incremental/mergeArm64DebugResources/merged.dir/values/values.xml:99: error: resource android:attr/fontVariationSettings not found.
/home/userpop/Documents/1Ionic/Animation2/platforms/android/app/build/intermediates/incremental/mergeArm64DebugResources/merged.dir/values/values.xml:99: error: resource android:attr/ttcIndex not found.
error: failed linking references.

Failed to execute aapt
com.android.ide.common.process.ProcessException: Failed to execute aapt
at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)
at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)
at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285)
at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)
at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:60)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:128)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:46)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:311)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:202)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:132)
at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:107)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:78)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:75)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:152)
at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:100)
at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:75)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$1.run(RunAsBuildOperationBuildActionRunner.java:43)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40)
at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:45)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:29)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:71)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:45)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:51)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:32)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:64)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:29)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:55)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:42)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:58)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:33)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:82)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482)
at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794)
… 121 more
Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
… 1 more
Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:454)
at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:411)
at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332)
at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:processArm64DebugResources’.

Failed to execute aapt

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3m 1s
at ChildProcess.whenDone (/home/userpop/Documents/1Ionic/Animation2/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:19944) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:19944) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Posts: 1

Participants: 1

Read full topic

Viewing all 69692 articles
Browse latest View live




Latest Images