首页 文章

无法使用nativescript-plugin-firebase演示应用程序

提问于
浏览
0

我正在尝试使用Eddy Verbruggen的nativescript-plugin-firebase演示应用程序,但我一直在收到错误,请帮忙

这是演示的链接:https://github.com/EddyVerbruggen/nativescript-plugin-firebase-demo#nativescript-plugin-firebase-demo-app

我安装了最新的Google Play服务和Google Repository并完成了教程中讲述的所有内容,但仍然没有成功

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 run android从D:\ s_a_m \ nativescript \ firstProject \ nativescript-plugin-firebase-demo \ Firebase \ hooks \执行before-prepare钩子-prepare \ nativescript-dev-typescript.js找到对等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 phase:createDefaultIncludeFiles找到插件:nativescript-plugin-firebase找到的插件:tns-core-modules-widgets

:config phase:createPluginsConfigFile在D:\ s_a_m \ nativescript \ firstProject \ nativescript-plugin-firebase-demo \ Firebase \ platforms \ android / configurations文件夹中创建产品风格include.gradle文件...

:config phase: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 \机器人\配置\ TNS-芯模块的小部件\ include.gradle

:config阶段: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-日期: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:pre pareComGoogleFirebaseFirebaseAnalyticsImpl940Library 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 UP -TO-DATE:prepareF0F1DebugDependencies:compileF0F1DebugAidl UP-TO-DATE:compileF0F1DebugRenderscript UP-TO-DATE :generateF0F1DebugBuildConfig UP-TO-DATE:cleanLocalAarFiles:ensureMetadataOutDir:collectAllJars:setProperties:asbg:generateInterfaceNamesList:asbg:runAstParser UP-TO-DATE:asbg:generateBindings UP-TO-DATE:mergeF0F1DebugShaders UP-TO-DATE:compileF0F1DebugShaders UP-TO-日期:generateF0F1DebugAssets UP-TO-DATE:mergeF0F1DebugAssets UP-TO-DATE:generateF0F1DebugResValues UP-TO-DATE:processF0F1DebugGoogleServices解析json文件:D:\ s_a_m \ nativescript \ firstProject \ nativescript-plugin-firebase-demo \ Firebase \ platforms \ android \ google-services.json:generateF0F1DebugResources:mergeF0F1DebugResourcesd:\ s_a_m \ nativescript \ firstProject \ nativescript-插件 - 火力 - 演示\火力地堡\平台\机器人\编译\ \中间体爆炸-AAR \ com.google.android.gms \播放服务基地\ 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 \ explosion-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 FAILED

FAILURE:构建因异常而失败 .

  • 出了什么问题:任务执行失败':mergeF0F1DebugResources' .

D:\ s_a_m \ nativescript \ firstProject \ nativescript-plugin-firebase-demo \ Firebase \ platforms \ android \ build \ intermediates \ explosion-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 \编译\ \中间体爆炸-AAR \ com.google.android.gms \播放服务基地\ 9.4.0 \水库\绘制-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

运行android

┌────────────────────────┬──────────────────────── ────────────────────────────────────────────────── ───────────────用法│概要││在所有连接上运行│$ tns运行android [--key-store-path --key-store-password--key│ │设备和运行│-store-alias -key-store-alias-password] [--release] [--justlaunch]││模拟器│││运行于选定的│$ tns运行android --device [ - key-store-path -key-store││连接设备或│-password-key-store-alias -key-store-alias-password] [ - ││运行模拟器│-release] [--justlaunch] ││启动模拟器和│$ tns运行android --emulator [] [--key-store-path--key││运行其中的应用程序│-store-password --key-store-alias --key-商店ALIAS-密码│││] [ - 发布] [ - 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停止).....

1 回答

  • 1

    您是否看到了实际问题并且您是否已尝试解决此问题?

    我的意思是,这个文件的路径为247个字符,其中只允许240个:

    错误:Windows上的文件路径太长,保持在240个字符以下:D:\ s_a_m \ nativescript \ firstProject \ nativescript-plugin-firebase-demo \ Firebase \ platforms \ android \ build \ intermediates \ explosion-aar \ com.google.android .gms \播放服务基地\ 9.4.0 \水库\绘制-xhdpi-V4 \ common_google_signin_btn_text_dark_pressed.9.png

    所以我想将项目移动到一个文件夹并将演示应用程序克隆到一个名称较短的文件夹中 .

相关问题