Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70747

Android build failed after Ionic Native Crop plugin installed

$
0
0

@IgorSamer wrote:

I’m trying to use the Ionic Native Crop plugin on my app, but without success.

Before the plugin instalation all works fine when I run ionic cordova run android --device, but, when I install the plugin with:

ionic cordova plugin add cordova-plugin-crop

and

npm install --save @ionic-native/crop

the following error occurs when I run ionic cordova run android --device:

FAILURE: Build failed with an exception.

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

com.android.ide.common.process.ProcessException: 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.
    FAILED

BUILD FAILED

Total time: 1 mins 15.829 secs
Error: cmd: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

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

com.android.ide.common.process.ProcessException: 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.

[ERROR] An error occurred while running cordova run android --device (exit code 1).

If I uninstall the plugin, all works fine again.

ionic info output:

cli packages: (C:\Users\User\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.1.0
Cordova Platforms  : android 6.3.0 browser 5.0.1 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v6.11.2
npm  : 3.10.10
OS   : Windows 10

Environment Variables:

ANDROID_HOME : C:\Android\android-sdk

Misc:

backend : pro

ionic cordova requirements output:

Requirements check results for android:
Error: Cannot read property ‘forEach’ of undefined

Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
cmd: Command failed with exit code 1 Error output:
‘avdmanager’ is not recognized as an internal command
or external, an operable program or a batch file.
Gradle: installed C:\Program Files\Android\Android Studio1\gradle\gradle-4.1\bin\gradle

I found it strange that when I run ionic cordova requirements the Android target is not installed (maybe it’s a bug, since a few days ago my Cordova Platforms was none and now contains the information), but anyway everything works fine, less when I install the crop plugin.

Do I have to search for another plugin or is there any way to solve this?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



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