【发布时间】:2016-10-07 22:32:23
【问题描述】:
我正在尝试让 Eddy Verbruggen 的 nativescript-plugin-firebase 演示应用程序工作,但我不断收到错误,请帮助
我安装了最新的 Google Play 服务和 Google 存储库,并完成了教程中介绍的所有事情,但仍然没有成功
D:\s_a_m\nativescript\firstProject\weernietgoed>cd D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase
D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase>tns 运行 android 从 D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\hooks\before-prepare\nativescript-dev-typescript.js 执行 before-prepare 挂钩 找到对等 TypeScript 1.8.10 项目准备成功(android) 警告:文件:D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\node_modules\nativescript-plugin-firebase\platforms\android\README.md 已被弃用,您可以阅读更多有关内容的信息这里预期的插件结构:https://www.nativescript.org/blog/migrating-n-android-plugins-from-version-1.7-to-2.0
:config 阶段:createDefaultIncludeFiles +找到的插件:nativescript-plugin-firebase +找到的插件:tns-core-modules-widgets
:config 阶段:createPluginsConfigFile 在 D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\platforms\android/configurations 文件夹中创建产品风格 include.gradle 文件...
:config 阶段:pluginExtend +从以下位置应用配置:D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\platforms\android\configurations\include.gradle +从以下位置应用配置:D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\platforms\android\configurations\nativescript-plugin-firebase\include.gradle +应用配置来自:D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\platforms\android\configurations\tns-core-modules-widgets\include.gradle
:配置阶段:copyAarDependencies
:config 阶段:addAarDependencies +添加依赖:D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\platforms\android\libs\aar\firebase-release.aar +添加依赖:D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\platforms\android\libs\aar\widgets-release.aar 增量java编译是一个孵化特性。 :preBuild UP-TO-DATE :preF0F1DebugBuild UP-TO-DATE :checkF0F1DebugManifest :preF0F1ReleaseBuild UP-TO-DATE :prepareComAndroidSupportAnimatedVectorDrawable2421Library UP-TO-DATE :prepareComAndroidSupportAppcompatV72421Library UP-TO-DATE :prepareComAndroidSupportMultidex101Library UP-TO-DATE :prepareComAndroidSupportSupportCompat2421Library UP-TO-DATE :prepareComAndroidSupportSupportCoreUi2421Library UP-TO-DATE :prepareComAndroidSupportSupportCoreUtils2421Library UP-TO-DATE :prepareComAndroidSupportSupportFragment2421Library UP-TO-DATE :prepareComAndroidSupportSupportMediaCompat2421Library UP-TO-DATE :prepareComAndroidSupportSupportV42421Library UP-TO-DATE :prepareComAndroidSupportSupportVectorDrawable2421Library UP-TO-DATE :prepareComGoogleAndroidGmsPlayServicesBase940Library UP-TO-DATE :prepareComGoogleAndroidGmsPlayServicesBasement940Library UP-TO-DATE :prepareComGoogleAndroidGmsPlayServicesTasks940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseAnalytics940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseAnalyticsImpl940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseAuth940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseAuthCommon940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseAuthModule940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseCommon940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseCore940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseCrash940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseDatabase940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseDatabaseConnection940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseIid940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseStorage940Library UP-TO-DATE :prepareComGoogleFirebaseFirebaseStorageCommon940Library UP-TO-DATE :prepareFirebaseReleaseLibrary UP-TO-DATE :prepareFirebasedemoRuntimeUnspecifiedLibrary UP-TO-DATE :prepareWidgetsReleaseLibrary 最新 :prepareF0F1DebugDependencies :compileF0F1DebugAidl UP-TO-DATE :compileF0F1DebugRenderscript UP-TO-DATE :generateF0F1DebugBuildConfig UP-TO-DATE :cleanLocalAar 文件 :ensureMetadataOutDir :collectAllJars :set 属性 :asbg:generateInterfaceNamesList :asbg:runAstParser 最新 :asbg:generateBindings UP-TO-DATE :mergeF0F1DebugShaders 最新 :compileF0F1DebugShaders UP-TO-DATE :generateF0F1DebugAssets UP-TO-DATE :mergeF0F1DebugAssets 最新 :generateF0F1DebugResValues UP-TO-DATE :processF0F1DebugGoogleServices 解析json文件:D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\platforms\android\google-services.json :generateF0F1DebugResources :mergeF0F1DebugResources D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.4.0\res \drawable-xhdpi-v4\common_google_signin_btn_text_dark_pressed.9.png:错误:Windows 上的文件路径太长,请保持低于 240 个字符:D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\platforms\android\ build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.4.0\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_pressed.9.png :mergeF0F1DebugResources 失败
FAILURE:构建失败并出现异常。
-
出了什么问题: 任务 ':mergeF0F1DebugResources' 执行失败。
D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.4。 0\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_pressed.9.png:错误:Windows 上的文件路径太长,保持低于 240 个字符:D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\platforms \android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.4.0\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_pressed.9.png
尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。
构建失败
总时间:20.794 秒 命令 D:\s_a_m\nativescript\firstProject\nativescript-plugin-firebase-demo\Firebase\platforms\android\gradlew.bat 失败,退出代码为 1
运行安卓
┌────────────────────────┬────────────────────── ────────────────────────────────────────────────── ──────────────────┐ │ 用法 │ 概要 │ │ 在所有连接上运行│ $ tns run android [--key-store-path --key-store-password --key │ │ 设备和运行 │ -store-alias --key-store-alias-password ] [--release] [--justlaunch] │ │ 模拟器│ │ │ 在选定的设备上运行│ $ tns run android --device [--key-store-path --key-store │ │ 连接的设备或 │ -password --key-store-alias --key-store-alias-password ] [- │ │ 运行模拟器│ -release] [--justlaunch] │ │ 启动模拟器并 │ $ tns run android --emulator [] [--key-store-path --key │ │ 运行里面的应用程序│ -store-password --key-store-alias --key-store-alias-password │ │ │ ] [--release] [--justlaunch] │ └────────────────────────┴──────────────────────── ────────────────────────────────────────────────── ────────────────┘
在已连接的 Android 设备或本机 Android 模拟器(如果已配置)中运行您的项目。这是准备、构建和部署的简写。在您的应用运行时,在控制台中打印应用的输出。
选项
* --watch - If set, when you save changes to the project, changes are automatically synchronized to the connected device.
* --device - Specifies a connected device on which to run the app.
* --emulator - If set, runs the app in a native emulator for the target platform, if configured. When set, you can also set any other valid combination of emulator options as listed by $ tns help emulate android.
* --release - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the --key-store-* options.
* --key-store-path - Specifies the file path to the keystore file (P12) which you want to use to code sign your APK. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-password - Provides the password for the keystore file specified with --key-store-path. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-alias - Provides the alias for the keystore file specified with --key-store-path. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options. * --key-store-alias-password - Provides the password for the alias specified with --key-store-alias-password. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --justlaunch - If set, does not print the application output in the console.
属性
* <Device ID> is the index or name of the target device as listed by $ tns device android
* <Emulator Options> is any valid combination of options as listed by $ tns help emulate android
发送异常报告(按Ctrl+C停止).....
【问题讨论】:
标签: firebase angular2-nativescript