Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #1014: Class com.freshplanet.ane.AirGooglePlayGames::AirGooglePlayGamesEvent could not be found. #3

Open
evgenidb opened this issue Feb 4, 2014 · 11 comments

Comments

@evgenidb
Copy link

evgenidb commented Feb 4, 2014

Hello,
I have an issue with running your library on Android Device (but not in the emulator).

In the XML (AIR Manifest) I have:

......

<!-- Google Play Games Services -->
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\ 123456789012" />
<activity android:name="com.freshplanet.googleplaygames.SignInActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />

And when I run the app, it crashes soon after with:
[Fault] exception, information=VerifyError: Error #1014: Class com.freshplanet.ane.AirGooglePlayGames::AirGooglePlayGamesEvent could not be found.

The Stacktrace is:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:604)
at java.util.ArrayList.get(ArrayList.java:382)
at flash.tools.debugger.concrete.DManager.getFrame(DManager.java:921)
at flash.tools.debugger.concrete.PlayerSession.pullUpActivationObjectVariables(PlayerSession.java:1113)
at flash.tools.debugger.concrete.PlayerSession.requestFrame(PlayerSession.java:1089)
at flash.tools.debugger.concrete.PlayerSession.getValueWorker(PlayerSession.java:1211)
at flash.tools.debugger.concrete.IsolatePlayerSession.getValue(IsolatePlayerSession.java:123)
at flex.tools.debugger.cli.ExpressionContext.memberNamed(ExpressionContext.java:438)
at flex.tools.debugger.cli.ExpressionContext.locateParentForNamed(ExpressionContext.java:540)
at flex.tools.debugger.cli.ExpressionContext.determineContext(ExpressionContext.java:490)
at flex.tools.debugger.cli.ExpressionContext.resolveToVariable(ExpressionContext.java:350)
at flex.tools.debugger.cli.ExpressionContext.lookup(ExpressionContext.java:169)
at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:161)
at macromedia.asc.parser.ThisExpressionNode.evaluate(ThisExpressionNode.java:34)
at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:1031)
at macromedia.asc.parser.ListNode.evaluate(ListNode.java:44)
at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:1031)
at macromedia.asc.parser.ListNode.evaluate(ListNode.java:44)
at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:1065)
at macromedia.asc.parser.ExpressionStatementNode.evaluate(ExpressionStatementNode.java:50)
at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:1306)
at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:80)
at flash.tools.debugger.expression.DebuggerExpression.evaluate(DebuggerExpression.java:106)
at flex.tools.debugger.cli.ExpressionCache.evaluate(ExpressionCache.java:101)
at flex.tools.debugger.cli.DebugCLI.evalExpression(DebugCLI.java:4023)
at flex.tools.debugger.cli.DebugCLI.evalExpression(DebugCLI.java:4015)
at flex.tools.debugger.cli.DebugCLI.doPrint(DebugCLI.java:3941)
at flex.tools.debugger.cli.DebugCLI.processLine(DebugCLI.java:7032)
at flex.tools.debugger.cli.DebugCLI.process(DebugCLI.java:828)
at flex.tools.debugger.cli.DebugCLI.execute(DebugCLI.java:669)
at flex.tools.debugger.cli.DebugCLI.main(DebugCLI.java:461)


I even tried to put:

.......

<extensionID>com.freshplanet.AirGooglePlayGamesService</extensionID>

But it doesn't work either, so I'm assuming I shouldn't do this.

In this case a pop-up window shows with the title "Create Android Package" and this text:

aapt tool failed:C:\Users\Dev-Com2\AppData\Local\Temp\a3b23b12-a89e-4166-bc46-4654bc2e803f\res\layout\com_facebook_placepickerfragment_list_row.xml:33: error: Error: No resource found that matches the given name (at 'layout_width' with value '@dimen/com_facebook_picker_place_image_size').
C:\Users\Dev-Com2\AppData\Local\Temp\a3b23b12-a89e-4166-bc46-4654bc2e803f\res\layout\com_facebook_placepickerfragment_list_row.xml:33: error: Error: No resource found that matches the given name (at 'layout_height' with value '@dimen/com_facebook_picker_place_image_size').
C:\Users\Dev-Com2\AppData\Local\Temp\a3b23b12-a89e-4166-bc46-4654bc2e803f\res\layout\com_facebook_search_bar_layout.xml:3: error: Error: No resource found that matches the given name (at 'background' with value '@color/com_facebook_picker_search_bar_background').
C:\Users\Dev-Com2\AppData\Local\Temp\a3b23b12-a89e-4166-bc46-4654bc2e803f\res\layout\com_facebook_search_bar_layout.xml:15: error: Error: No resource found that matches the given name (at 'textColorHint' with value '@color/com_facebook_picker_search_bar_text').
C:\Users\Dev-Com2\AppData\Local\Temp\a3b23b12-a89e-4166-bc46-4654bc2e803f\res\layout\com_facebook_search_bar_layout.xml:15: error: Error: No resource found that matches the given name (at 'background' with value '@color/com_facebook_picker_search_bar_background').

ADT command line:
c:\program files (x86)\jetbrains\intellij idea 12.1.2\jre\jre\bin\java.exe -Dapplication.home=D:\Air_SDK\AIR_4.0 -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -jar D:\Air_SDK\AIR_4.0\lib\adt.jar -package -target apk-debug -listen 7936 -storetype PKCS12 -keystore C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.2\plugins\flex\lib\temp_keystore.p12 -storepass keystore_password D:\Projects\WienerGames\LasVegasSlot\production\Mobile\LasVegasMobile.apk D:\Projects\WienerGames\LasVegasSlot\production\Mobile\LasVegasMobile-app.xml -extdir D:\SWC_and_librarys\MmgStoreKitANE_v1_0_9\extension -extdir D:\SWC_and_librarys\MmgRateBoxANE_v1_0_10\extension -extdir D:\SWC_and_librarys\MmgAndroidIABANE_v2_0_0\extension -extdir D:\SWC_and_librarys\MmgGoViral_both_ANE_v3_0_8\extension -extdir D:\SWC_and_librarys\AndroidGooglePlayServices\ANE-Google-Play-Game-Services\bin -C D:\Projects\WienerGames\LasVegasSlot\production\Mobile Mobile.swf -C D:\Projects\WienerGames\LasVegasSlot\Assets\gameassets . -C D:\Projects\WienerGames\LasVegasSlot\Mobile\system\icons .


I use:
- IntelliJ IDEA 12.1.2
- AIR SDK 4.0
- Win 7 x64-bit.

The Library is added as dependency in the project as Global Library (both in the Core and Mobile projects). I added both the AS3 code and the ANE.

Rebuilding the project also doesn't help.

Please, help.

Regards,
Evgeni

@Myst521
Copy link

Myst521 commented Mar 14, 2014

Hello !
I have the same problem of "No resource found" when trying to debug on an android device with Flash Builder 4.7. I have also try to recompile the ane which leads me to the same problem.
Compiling without this ANE in the package works fine.
Did anyone found a solution or a workaround ?

aapt tool failed:/private/var/folders/w3/dgvb5pgx2xgfbfzncgy9zc900000gn/T/58b7c2e4-e605-4d09-bee9-884f543298d9/res/layout/com_facebook_placepickerfragment_list_row.xml:33: error: Error: No resource found that matches the given name (at 'layout_width' with value '@dimen/com_facebook_picker_place_image_size').
/private/var/folders/w3/dgvb5pgx2xgfbfzncgy9zc900000gn/T/58b7c2e4-e605-4d09-bee9-884f543298d9/res/layout/com_facebook_placepickerfragment_list_row.xml:33: error: Error: No resource found that matches the given name (at 'layout_height' with value '@dimen/com_facebook_picker_place_image_size').
/private/var/folders/w3/dgvb5pgx2xgfbfzncgy9zc900000gn/T/58b7c2e4-e605-4d09-bee9-884f543298d9/res/layout/com_facebook_search_bar_layout.xml:3: error: Error: No resource found that matches the given name (at 'background' with value '@color/com_facebook_picker_search_bar_background').
/private/var/folders/w3/dgvb5pgx2xgfbfzncgy9zc900000gn/T/58b7c2e4-e605-4d09-bee9-884f543298d9/res/layout/com_facebook_search_bar_layout.xml:15: error: Error: No resource found that matches the given name (at 'textColorHint' with value '@color/com_facebook_picker_search_bar_text').
/private/var/folders/w3/dgvb5pgx2xgfbfzncgy9zc900000gn/T/58b7c2e4-e605-4d09-bee9-884f543298d9/res/layout/com_facebook_search_bar_layout.xml:15: error: Error: No resource found that matches the given name (at 'background' with value '@color/com_facebook_picker_search_bar_background').
/private/var/folders/w3/dgvb5pgx2xgfbfzncgy9zc900000gn/T/58b7c2e4-e605-4d09-bee9-884f543298d9/res/layout/progress_dialog.xml:17: error: Error: No resource found that matches the given name (at 'style' with value '@style/IapProgressBar').

By the way, thanks for your open source ANEs, that's a great job and already saves me loooot of time ^^
Regards,
Myst521

@EmilMarian
Copy link

Had anyone get to solve the problem and make the extension work?

@HDmovie
Copy link

HDmovie commented May 29, 2014

Add the following line in the manifest:

<extensionID>com.freshplanet.AirGooglePlayGamesService</extensionID>

Please ensure that the targetVersion of sdk in the manifest is set to 13 like below

<uses-sdk android:targetSdkVersion="13"/>

Please ensure that your app-id is well formated like below:

<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\ 000000000000" />

Don't forget the space after the ""!

Please ensure that the startAtLaunch methode is called on the first frame of your app (in your preloader if you have one)

If none of the above works for you, well...you're doomed!

@skatermem
Copy link

it doesn't work for me, looks like I'm doomed, lol

@HDmovie
Copy link

HDmovie commented May 30, 2014

Yeah. It kindy works for me but I run into another bug. So I switched to the lib from milkman.

@skatermem
Copy link

how did you get it working? I'd like to get it working as long as the bug isn't too major

@HDmovie
Copy link

HDmovie commented May 31, 2014

It's not working but there is no crash either. Nothing appends when I call the showStandardAchievements.
By looking into the device logcat I can see an issue with a popup view.

PopupManager﹕ You have not specified a View to use as content view for popups. Falling back to the Activity content view which may not work properly in future versions of the API. Use setViewForPopups() to set your content view.

@skatermem
Copy link

I have that too, I get it on signIn() , oh well, looks like i'll have to check out milkman's lib. Google should come out with a version for air developers.

@HDmovie
Copy link

HDmovie commented May 31, 2014

I hope that too but it's not likely to happen. I'm currently learning how to make my own extention. I will inform you if I manage to do it.

@skatermem
Copy link

alright good luck.

@KStola
Copy link

KStola commented Jun 18, 2014

I've got a simmilar issue. I managed to find out, that in my case it comes from two different anes conflicting with each other. They are:

<extensionID>com.freshplanet.AirGooglePlayGamesService</extensionID>
<extensionID>com.milkmangames.extensions.GoViral</extensionID>

Anytime I comment out one of them, the compilation succeeds, but never can I use them together. The error I get is:

aapt tool failed:C:\Users\karol-stola\AppData\Local\Temp\6467ebfb-c5ff-46f5-9762-f8ca2f07d433\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\karol-stola\AppData\Local\Temp\6467ebfb-c5ff-46f5-9762-f8ca2f07d433\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\karol-stola\AppData\Local\Temp\6467ebfb-c5ff-46f5-9762-f8ca2f07d433\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\karol-stola\AppData\Local\Temp\6467ebfb-c5ff-46f5-9762-f8ca2f07d433\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\karol-stola\AppData\Local\Temp\6467ebfb-c5ff-46f5-9762-f8ca2f07d433\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\karol-stola\AppData\Local\Temp\6467ebfb-c5ff-46f5-9762-f8ca2f07d433\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\karol-stola\AppData\Local\Temp\6467ebfb-c5ff-46f5-9762-f8ca2f07d433\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\karol-stola\AppData\Local\Temp\6467ebfb-c5ff-46f5-9762-f8ca2f07d433\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\karol-stola\AppData\Local\Temp\6467ebfb-c5ff-46f5-9762-f8ca2f07d433\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\karol-stola\AppData\Local\Temp\6467ebfb-c5ff-46f5-9762-f8ca2f07d433\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').

Then I found something like this:
http://sluse.com/view/18788874

It turned out that it appears, when in both anes you have files in res/values, that have the same name. Seems that you have to recompile one of your anes with renamed file in order for it to work.
Steps I took:

  • renamed file res/values/colors.xml to res/values/colors_pgs.xml
  • recompiled the ane

Then I stumbled upon a problem, that adt found some duplicates:

aapt tool failed:C:\Users\karol-stola\AppData\Local\Temp\0558adf8-95dc-4819-b8f5-67dc379816f0\res\values\colors_pgs.xml:14: error: Resource entry com_facebook_picker_place_image_size is already defined.
C:\Users\karol-stola\AppData\Local\Temp\0558adf8-95dc-4819-b8f5-67dc379816f0\res\values\colors.xml:3: Originally defined here.
C:\Users\karol-stola\AppData\Local\Temp\0558adf8-95dc-4819-b8f5-67dc379816f0\res\values\colors_pgs.xml:15: error: Resource entry com_facebook_picker_search_bar_background is already defined.
C:\Users\karol-stola\AppData\Local\Temp\0558adf8-95dc-4819-b8f5-67dc379816f0\res\values\colors.xml:4: Originally defined here.
C:\Users\karol-stola\AppData\Local\Temp\0558adf8-95dc-4819-b8f5-67dc379816f0\res\values\colors_pgs.xml:16: error: Resource entry com_facebook_picker_search_bar_text is already defined.
C:\Users\karol-stola\AppData\Local\Temp\0558adf8-95dc-4819-b8f5-67dc379816f0\res\values\colors.xml:5: Originally defined here.

Which I mercilessly commented out in my res/values/colors_pgs.xml, recompiled and it worked!
It seems to run on android, but no real tests were performed.
It obviously won't work, when you cannot recompile your ane, and will be problematic, when you decide to get rid of one of them (out-commenting, and recompiling in xml).

I suppose, that the problem appears because of some adt strange behaviour, that it does not use the file, which name was already used (two files with same name).

I would graceously accept any thoughts on what can go wrong with this solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants