marpies / game-services-ane

Google Play and Game Center extension for Adobe AIR
Apache License 2.0
9 stars 7 forks source link

Line 29, Column 13 1120: Access of undefined property ane. #2

Open orcuncun opened 6 years ago

orcuncun commented 6 years ago

Line 29, Column 13 1120: Access of undefined property ane. I am getting this error, what could be the reason?

marpies commented 6 years ago

Are you trying to rebuild the ANE? You will need to add CONFIG::ane to the compiler.

If you are not rebuilding the ANE then please share more about what you are trying to do.

orcuncun commented 6 years ago

I am getting this error when compiling with the Adobe air program. I am applying all of your guidelines. capture5 capture capture2 capture3 capture4

marpies commented 6 years ago

Do not copy the extension sources to your project. If you are using Animate then you should only need to add the com.marpies.ane.gameServices.ane file.

orcuncun commented 6 years ago

capture when I compiled it now. game-services-ane-master.rar, should I add this to the project, before compiling it as apk. capture2

marpies commented 6 years ago

You don't need the game-services-ane-master.rar in your project. Only add the ANE file, you can also download it directly here without downloading the entire repository.

orcuncun commented 6 years ago

capture

When I try to compile apk, I get this problem.

marpies commented 6 years ago

You did not add Android dependency ANEs, read the README for more information:

<extensions>
    <extensionID>com.marpies.ane.androidsupport</extensionID>
    <extensionID>com.marpies.ane.googleplayservices.base</extensionID>
    <extensionID>com.marpies.ane.googleplayservices.basement</extensionID>
    <extensionID>com.marpies.ane.googleplayservices.tasks</extensionID>
    <extensionID>com.marpies.ane.googleplayservices.games</extensionID>
</extensions>
orcuncun commented 6 years ago

It's not the same thing that you do with what I do. I also have problems when I add. capture3

As you said before, I add it, the code added after it is compiled is deleted automatically. Before; capture Later; capture2

marpies commented 6 years ago

Your IDE must be removing the extensions from your descriptor, for some reason. Make sure you are not editing the descriptor in the compile/output directory.

orcuncun commented 6 years ago

There is no error when it is added in this way, and when I test it, nothing comes out. Do I need to load the app into the store (as beta for testing)? capture

marpies commented 6 years ago

You should not need to upload the APK for testing, but you may need to enabled Game Services for your app in the Google Developer console.

If that does not help then you should use adb tool to view the device logs. There may be some error message that will help you figure out why it is not working.