在react-native-push-notification中构建失败:processReleaseResources

时间:2016-05-12 16:45:51

标签: windows react-native

我是反应原生的新手,我在makeitopen.com中按照安装f8app进行操作。 在我尝试react-native run-android之前,一切顺利。当我运行该命令时,出现了我不知道的错误。这是错误日志。

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-push-notification:processReleaseResourc
es'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.E
xecException: Process 'command 'C:\Android\sdk\build-tools\23.0.2\aapt.exe'' fin
ished with non-zero exit value 1

FYI 我使用Android SDK Build工具23.0.2。

我希望你们可以帮助我,因为我对反应原生非常感兴趣。

谢谢

编辑(2016年5月17日)

这是完整的错误日志

D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_icon_dark.xml:5:27-80 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_dark_disabled').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_icon_dark.xml:8:27-79 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_dark_pressed').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_icon_dark.xml:11:27-79 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_dark_focused').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_icon_light.xml:5:27-81 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_light_disabled').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_icon_light.xml:8:27-80 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_light_pressed').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_icon_light.xml:11:27-80 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_light_focused').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_icon_light.xml:13:27-79 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_light_normal').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_text_dark.xml:7:27-80 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_dark_disabled').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_text_dark.xml:10:27-79 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_dark_pressed').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_text_dark.xml:13:27-79 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_dark_focused').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_text_light.xml:5:27-81 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_light_disabled').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_text_light.xml:8:27-80 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_light_pressed').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_text_light.xml:11:27-80 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_light_focused').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_google_signin_btn_text_light.xml:13:27-79 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_light_normal').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_plus_signin_btn_icon_light.xml:5:27-79 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_icon_light_disabled').
D:\My Files\programming\react-native\f8app\node_modules\react-native-push-notification\RNPushNotificationAndroid\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.3.0\res\drawable\common_plus_signin_btn_text_light.xml:5:27-79 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_text_light_disabled').

:react-native-push-notification:processReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-push-notification:processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Android\sdk\build-tools\23.0.2\aapt.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: 3 mins 39.493 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

1 个答案:

答案 0 :(得分:3)

在Windows操作系统中,当文件名太大时,您会在构建应用程序时收到此错误消息。

有关详细信息,请参阅this