First of all I had downloaded plugin
http://appcodingeasy.com/Gideros-Mobile/Flurry-plugin-for-Android and registered on flurry.com. Then I ran FlurryTest.gproj through the Gideros Player on my Android device and caught the error:
main.lua is uploading.
Uploading finished.
main.lua:2: module 'flurry' not found:
no field package.preload['flurry']
no file './flurry.lua'
no file '/usr/local/share/lua/5.1/flurry.lua'
no file '/usr/local/share/lua/5.1/flurry/init.lua'
no file '/usr/local/lib/lua/5.1/flurry.lua'
no file '/usr/local/lib/lua/5.1/flurry/init.lua'
no file './flurry.so'
no file '/usr/local/lib/lua/5.1/flurry.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
main.lua:2: in main chunk
main.lua is uploading. |
The code here is:
--require flurry
require("flurry")
if(flurry.isAvailable()) then
------
end |
I tried to export project and build it to *.apk file (I've done all instructions here:
http://appcodingeasy.com/Gideros-Mobile/Flurry-plugin-for-Android), but this program also didnt't run on my device.
What I did wrong?
Comments
Likes: seppsepp
https://play.google.com/store/apps/developer?id=Into-It+Games
http://appstore.com/LidiaMaximova
Thank you for answer.
Have you followed all the directions?
Yes, I think so, but I'll recheck it one more time.
My first guess is that you forgot to either add "System.loadLibrary("flurry");" or "com.giderosmobile.android.Flurry" to external classes.
Did I understand you correctly, that you talking about settings in Android project in Eclipse? But how to run Flurry in Gideros Player? Is it possible? Or this code works only in built *.apk file?
But I still can't run Flurry plugin in Android project. I attached to this post two screenshots of my Android project settings. When I run this project in debug mode I catch following error messages:
You don't even need to add libraries to build path anymore, but simply copying it to the libs directory
Here is a project for set up Gideros Player with Flurry Plugin
Also, I don't know why, but Lua code:
Google Play: https://play.google.com/store/apps/details?id=com.Mithrilsoft.Fourfold
Google Plus: https://plus.google.com/117851645612711931372
Twitter: https://twitter.com/mithrilsoft
Google Play: https://play.google.com/store/apps/details?id=com.Mithrilsoft.Fourfold
Google Plus: https://plus.google.com/117851645612711931372
Twitter: https://twitter.com/mithrilsoft