我试图让Eddy Verbruggen的nativescript-plugin-firebase演示应用程序正常工作,但我一直收到错误,请帮忙
我安装了最新的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>运行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
: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-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 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-DATE :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 :mergeF0F1DebugResources d:\ 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 \建立\ \中间体爆炸-AAR \ com.google.android.gms \播放服务基地\ 9.4.0 \水库\绘制-xhdpi-V4 \ common_google_signin_btn_text_dark_pressed.9.png :mergeF0F1DebugResources FAILED
失败:构建因异常而失败。
出了什么问题: 任务执行失败':mergeF0F1DebugResources'。
d:\ 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 \机器人\构建\中间体\分解-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
┌────────────────────────┬───────────────────── ────────────────────────────────────────────────── ──────────────────┐ │用法│概要│ │运行所有已连接的│$ 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-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停止).....
答案 0 :(得分: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
所以我想将项目移动到一个文件夹中并将演示应用程序克隆到一个名称较短的文件夹中。