Nativescript-plugin-firebase: nativescript project fails to build if nativescript-plugin-firebase added

Created on 31 Jan 2016  路  8Comments  路  Source: EddyVerbruggen/nativescript-plugin-firebase

I have shown that a project cloned from git (samples-Groceries) builds and runs correctly on a connected device.
If I now add nativescript-plugin-firebase, the project fails to build.

  • What went wrong:
    Execution failed for task ':processNativescriptfloatingactionbuttonNativescript-geolocationNativescript-plugin-firebaseNativescript-telerik-uiDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'c:\Users\Mike\AppData\Local\Androidandroid-sdkbuild-tools23.0.1aapt.exe'' finished with non-zero exit value 1

I have noticed a similar error occurring when I attempt to combine nativescript-geolocation and nativescript-google-sdk.

Removal of nativescript-plugin-firebase permits a successful build of the project.


System information:
{ procInfo: 'nativescript/1.5.2',
platform: 'win32',
os: 'Windows 10 Pro 6.3.10586',
shell: 'C:\WINDOWS\system32\cmd.exe',
dotNetVer: '4.6.01038',
procArch: 'x64',
nodeVer: 'v4.2.6',
npmVer: '2.14.12',
javaVer: '1.8.0',
nodeGypVer: null,
xcodeVer: null,
itunesInstalled: true,
cocoapodVer: null,
adbVer: 'Android Debug Bridge version 1.0.32',
androidInstalled: true,
monoVer: null,
gitVer: '2.7.0.windows.1',
gradleVer: null,
javacVersion: '1.8.0_72' }

Most helpful comment

This wasn't a plugin issue after all.

rm -rf node_modules/
tns platform remove ios
tns platform remove android
tns build ios
tns build android

That essentially cleans the workspace and builds from scratch. I also updated JDK to 8u73 and verified I had extras and API 17 and up platform SDK.

All 8 comments

@EddyVerbruggen
Same issue:

:processNativescript-phoneNativescript-plugin-firebaseNativescript-telerik-uiDebugResources FAILED

Execution failed for task ':processNativescript-phoneNativescript-plugin-firebaseNativescript-telerik-uiDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/Thomas/Developer/android-sdk-macosx/build-tools/23.0.2/aapt'' finished with non-zero exit value 1

Updated to latest 23.x build tools.... this dependency builds fine now.

Got another issue, but not sure its related to this plugin.

platforms/android/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.1.1/jars/classes.jar
    at com.telerik.metadata.ClassRepo.cacheJarFile(ClassRepo.java:21)
    at com.telerik.metadata.Builder.build(Builder.java:38)
    at com.telerik.metadata.Generator.main(Generator.java:44)
:buildMetadata FAILED

May have spoke to soon... doing:

tns platform remove android
tns build android

Produces the same error again:
Execution failed for task ':processNativescript-phoneNativescript-plugin-firebaseNativescript-telerik-uiDebugResources'.

iOS is building fine.

This wasn't a plugin issue after all.

rm -rf node_modules/
tns platform remove ios
tns platform remove android
tns build ios
tns build android

That essentially cleans the workspace and builds from scratch. I also updated JDK to 8u73 and verified I had extras and API 17 and up platform SDK.

Any update, I am still getting error Log info:

:generateNativescriptfloatingactionbuttonNativescript-telerik-uiDebugAssets UP-TO-DATE
:mergeNativescriptfloatingactionbuttonNativescript-telerik-uiDebugAssets UP-TO-DATE
:generateNativescriptfloatingactionbuttonNativescript-telerik-uiDebugResValues UP-TO-DATE
:generateNativescriptfloatingactionbuttonNativescript-telerik-uiDebugResources UP-TO-DATE
:mergeNativescriptfloatingactionbuttonNativescript-telerik-uiDebugResources UP-TO-DATE
:processNativescriptfloatingactionbuttonNativescript-telerik-uiDebugManifest UP-TO-DATE
:processNativescriptfloatingactionbuttonNativescript-telerik-uiDebugResources FAILED


:processNativescriptfloatingactionbuttonNativescript-telerik-uiDebugResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':processNativescriptfloatingactionbuttonNativescript-telerik-uiDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Rafeeq\AppData\Local\Androidandroid-sdkbuild-tools22.0.1aapt.exe'' finished with non-zero exit value 1

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

BUILD FAILED

Total time: 12.298 secs
Command C:\Work\Mobile\sample-Groceries\platformsandroid\gradlew.bat failed with exit code 1

Any update? this is so annoying as i have to tns platform remove android and readd back everytime this error comes out

@vzhen What I'm reading here is folks are not having plugin related issues but rather an issue with lingering build artifacts in NativeScript - it also seems to happen with other plugins.

That being siad: what's the error you're seeing and the exact reproduction path? I won't offer help if you're simply asking for an update or pinging me on Slack.

ok, i'm trying @tstpierre solution to see if it fix or not.

rm -rf node_modules/
tns platform remove ios
tns platform remove android
tns build ios
tns build android

Was this page helpful?
0 / 5 - 0 ratings