Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在离子2项目上安装phonegap插件推送后出错_Android_Angular_Push Notification_Google Cloud Messaging_Ionic2 - Fatal编程技术网

Android 在离子2项目上安装phonegap插件推送后出错

Android 在离子2项目上安装phonegap插件推送后出错,android,angular,push-notification,google-cloud-messaging,ionic2,Android,Angular,Push Notification,Google Cloud Messaging,Ionic2,我正在使用Amazon SNS/GCM开发一个离子2/Angular 2项目 我需要通过GCM发送和接收推送消息 我使用以下命令安装了推送插件: 爱奥尼亚插件添加phonegap插件推送——变量 发送者\u ID=我的\u GCM\u发送者\u ID 现在,在Android emulator上运行项目时出现以下错误: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task '

我正在使用Amazon SNS/GCM开发一个离子2/Angular 2项目

我需要通过GCM发送和接收推送消息

我使用以下命令安装了推送插件:

爱奥尼亚插件添加phonegap插件推送——变量 发送者\u ID=我的\u GCM\u发送者\u ID

现在,在Android emulator上运行项目时出现以下错误:

FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':mergeDebugResources'.

>
C:\Users\My User\Documents\Projetos\my-project\app\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.2.0\res\drawable-tvdpi-v4\common_google_signin_btn_text_light_disabled.9.png: Error: File path too long on Windows, keep below 240 characters : C:\Users\My Project\Documents\Projetos\my-project\app\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.2.0\res\drawable-tvdpi-v4\common_google_signin_btn_text_light_disabled.9.png



* Try:

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

 0=13, 1=10
 0=66, 1=85, 2=73, 3=76, 4=68, 5=32, 6=70, 7=65, 8=73, 9=76, 10=69, 11=68, 12=13, 13=10
 0=13, 1=10
 0=84, 1=111, 2=116, 3=97, 4=108, 5=32, 6=116, 7=105, 8=109, 9=101, 10=58, 11=32, 12=55, 13=46, 14=57, 15=51, 16=53, 17=32, 18=115, 19=101, 20=99, 21=115, 22=13, 23=10
Error: Error code 1 for command: cmd with args: /s,/c,""C:\Users\My User\Documents\Projetos\my-project\app\platforms\android\gradlew" cdvBuildDebug -b "C:\Users\My User\Documents\Projetos\my-project\app\platforms\android\build.gradle" -PcdvBuildArch=x86 -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"


Caught exception:
 undefined

Mind letting us know? https://github.com/driftyco/ionic-cli/issues
此外,该应用程序未在模拟器上运行

如何使用推送插件使项目正常运行?

已解决

原因: 文件的路径

“C:\Users\My Project\Documents\Projetos\my Project\app\Platform\android\build\intermediates\aar\com.google.android.gms\play services base\9.2.0\res\drawable-tvdpi-v4\common\u google\u signin\u btn\u text\u light\u disabled.9.png“

有240多个字符

解决方案: 将项目从

“C:\Users\My Project\Documents\Projetos\”

“C:\Projetos\

更多详细信息

不是重复的问题,而是具有相同原因的不同问题