freshplanet / ANE-Facebook

Air Native Extension (iOS and Android) for the Facebook mobile SDK
Apache License 2.0
221 stars 123 forks source link

aapt tool failed: No resource found that matches the given name ..@color/common_sigin_btn.. #234

Closed flashmandv closed 8 years ago

flashmandv commented 8 years ago

I'm trying to use the facebook extension but it throws error when trying to debug/build.

This is the full error:

Error occurred while packaging the application:
aapt tool failed:C:\Users\flashman\AppData\Local\Temp\aec0b47b-6c16-4a10-8119-f9850e445a8a\res\color\common_signin_btn_text_dark.xml:3: error: Error: No resource found that matches the given name (at 'color' with value '@color/common_signin_btn_dark_text_pressed').
C:\Users\flashman\AppData\Local\Temp\aec0b47b-6c16-4a10-8119-f9850e445a8a\res\color\common_signin_btn_text_dark.xml:6: error: Error: No resource found that matches the given name (at 'color' with value '@color/common_signin_btn_dark_text_disabled').
C:\Users\flashman\AppData\Local\Temp\aec0b47b-6c16-4a10-8119-f9850e445a8a\res\color\common_signin_btn_text_dark.xml:10: error: Error: No resource found that matches the given name (at 'color' with value '@color/common_signin_btn_dark_text_focused').
C:\Users\flashman\AppData\Local\Temp\aec0b47b-6c16-4a10-8119-f9850e445a8a\res\color\common_signin_btn_text_dark.xml:13: error: Error: No resource found that matches the given name (at 'color' with value '@color/common_signin_btn_dark_text_disabled').
C:\Users\flashman\AppData\Local\Temp\aec0b47b-6c16-4a10-8119-f9850e445a8a\res\color\common_signin_btn_text_dark.xml:16: error: Error: No resource found that matches the given name (at 'color' with value '@color/common_signin_btn_dark_text_default').
C:\Users\flashman\AppData\Local\Temp\aec0b47b-6c16-4a10-8119-f9850e445a8a\res\color\common_signin_btn_text_light.xml:3: error: Error: No resource found that matches the given name (at 'color' with value '@color/common_signin_btn_light_text_pressed').
C:\Users\flashman\AppData\Local\Temp\aec0b47b-6c16-4a10-8119-f9850e445a8a\res\color\common_signin_btn_text_light.xml:6: error: Error: No resource found that matches the given name (at 'color' with value '@color/common_signin_btn_light_text_disabled').
C:\Users\flashman\AppData\Local\Temp\aec0b47b-6c16-4a10-8119-f9850e445a8a\res\color\common_signin_btn_text_light.xml:10: error: Error: No resource found that matches the given name (at 'color' with value '@color/common_signin_btn_light_text_focused').
C:\Users\flashman\AppData\Local\Temp\aec0b47b-6c16-4a10-8119-f9850e445a8a\res\color\common_signin_btn_text_light.xml:13: error: Error: No resource found that matches the given name (at 'color' with value '@color/common_signin_btn_light_text_disabled').
C:\Users\flashman\AppData\Local\Temp\aec0b47b-6c16-4a10-8119-f9850e445a8a\res\color\common_signin_btn_text_light.xml:16: error: Error: No resource found that matches the given name (at 'color' with value '@color/common_signin_btn_light_text_default').

I'm using other ane's too..tried to remove them - same error. I have <uses-sdk android:minSdkVersion="13" ..tried 14 - no luck again. Please help

flashmandv commented 8 years ago
<color name="common_signin_btn_dark_text_default">@android:color/white</color>
<color name="common_signin_btn_dark_text_pressed">@android:color/white</color>
...

I added these to colors.xml and recompiled the ane. Now the extension is building but when I initiate a facebook login - the app crashes. There are no logs except for the init one: "[Facebook] Initializing with application ID "

Now I'm stuck. Please help

IgorGanapolsky commented 8 years ago

@flashmandv So what was the problem - you didn't declare resources in your colors.xml?

flashmandv commented 8 years ago

Hi @IgorGanapolsky
This was half year ago and I forgot what I did to solve it. I think it was some anes conflict (google play services probably)