I’m trying to export an unfinished version of my game just to see how the graphics look on an actual phone. I just want an apk file I can upload to my phone and install. I’ve done this many times with games I made in löve.
When I use the export function in Gideros Studio, in the Android section I added com.aprendacomjogs.presentsimpleenglish as 1 Package name and 01 as 2 Android Target Version and I left the box checked for 3 Build APK File. I didn’t add any other information such as checking the box for 4 Install APK to Device, 5 Key Store or 6 Key Alias.
The build failed with the error message:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\randall\Desktop\android_games\PresentSimpleEnglish\tmp\app\build.gradle' line: 4
* What went wrong:
A problem occurred evaluating project ':app'.
> Invalid revision:
Additional information can be seen in the 3 attached screenshots.
I tried finding infoemation about the "invalid revision" error but found nothing.
So what do I need to do to successfully export this game?
Comments
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
@antix
I read that target should be set to the same as the device on which you tested
I put 23
https://developer.android.com/training/basics/supporting-devices/platforms.html
** January 23, 2018 admob target= minimum 24
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
in the project properties in the settings tab 1 have version = 1.0, version code = 1 and buld number = 1. I think these were probably automatically generated as I don't remember entering this information.
Regarding "Verify that you have the installed version of android SDK that you specified when exporting" I don'tknow what this means.
1. In the Android tab when I click on File>Export Project there is a number 2-Android Target Version. Is that the "android SDK that you specified when exporting"?
2. I'm using Android Studio 3.0.1, but I can't figure out how to find what my android SDK version is.
Apparently that problem was that I hadn't run the configuration for Android Studio. After doing that, I was able to produce an .apk file with the export function.
But now the problem is, the file doesn't work. I USBed the file to my phone, but when I tried to install it, I got an error that there was a problem parsing the package. What would cause that?
Likes: antix
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Regarding line 7 Android SDK Version, I can't find this. I have a directory C:\Program Files\Android Studio, but nowhere in that directory or any of its subdirectories is there anything that says SDK.
I finally figured out line 8 JDK Directory is C:\Program Files\Android\Android Studio\jre\jre. When I run the export, I get an .apk file (see the attached BUILD SUCCESSFUL report), but it still gives the parse error when I try ro install it.
This is getting to be too complicated and I'm very frustrated. I'm taking some days off to see if I really want to continue with this. I really love programming with Gideros, but all this side BS is getting to me. Frankly, 75% of the frustration is because I have to use Windows if I want to use Gideros.
An example of the Windows BS: when I was trying to find the path to the JDK and SDK directories in the Gideros Studio export function using the browse function, because those fields require a directory, not a file, the browse function doesn't show files. The Windows developers don't seem to care that I'm looking for a directory that has a specific file in it so I would want to see the files that are in the directories. In Linux, in such a situation, the files are shown. They are grayed out and unselectable, but you can see the files that are there. That makes too much sense to be included in Windows.
And that's just one of the many small, but annoying things that add up to make many of us hate Windows. And frankly, there's a good chance that this is going to make me go back to löve, which I don't have to do in Windows. I may be back to Gideros after the smoke stops coming out of my ears, but that's going to take several days.
Dislikes: SinisterSoft
run android studio
Click the button I showed on the screen
, and update the SDK
fields in the gideros (optional) can be left empty
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
https://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html
Likes: SinisterSoft, antix
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
And if you think Android setup is complex, be warned that apple way is even more convoluted...
Likes: oleg, SinisterSoft
You also need to create a signing key and point to it in the export options - if you don't sign it (leave it blank) then you could use Google's own signing system in the google play dev portal.
https://deluxepixel.com
https://deluxepixel.com
First, a comment (actually 2 comments) about the package signing and then my current problem. I watched the video above and then I also watched another video () about this topic which I think does a better job of explaining the key process. It is done on a Mac, but the process is similar for Windows and the explanations why and how are better. Not a bad idea to watch both.
The second comment is that when making passwords in this process, DO NOT use special characters. In one of my passwords I used $ and this caused the build to fail. I make a new keystore with passwords with only numbers and letters and it succeeded.
Now the problem. After a successful build and transfer to my phone, I was able to install the app. But when I tried to run it, it did nothing except display the message "Unfortunately, MyPresentSimpleEnglish has stopped."
I have a very small Gideros project that I use to test ideas. Right now that project only has a main.lua file and one image file. All it does is display the image. I exported this file using the same parameters in the export function and it worked on my phone. So Gideros Studio can export a game which works on my phone.
How to I go about trying to figure out why this other project "stops"? It works fine in Gideros studio.
https://deluxepixel.com
It shouldn't take too long to rebuild the project in this fashion since I already did it and have the code. I've also kept a log of the process I used to build it. Every day I've added something I saved the directory that the project is in in case I broke something as I continued. Sometimes I copied the directory several times in a day when I was going to add code I was unsure of. Unfortunately, I only kept about 3 days of past versions and deleted versions earlier than that, or I could just export all of previous versions until I find where it "broke".
Well, I guess I better get started.
try sourcetree if you want a visual gui for git, i find it quite easy to use.
also if you later decide to make online backup then you can try bitbucket besides github, i prefer it as it allows you to keep your stuff closed-source and i can keep all the 100s of mb's of data (code, graphics, etc) related to my app there in one place.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
http://giderosmobile.com/forum/discussion/7225/check-syntax#latest
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: oleg, SinisterSoft
Tick the JSON and Bitop plugins and see if that works, they are quite commonly used for things like loading and processing settings - something that happens fairly early on.
The bitop functions can be completely replaced by new bitwise operators - these are much faster than using the bitop function library. If it's these functions that you use then once you convert to the new operators then you no longer need the plugin.
https://deluxepixel.com
A few comments:
This is my first Gideros project and I'm fairly new to programming. I did create 3 games in lua with löve that I successfully exported to Android. I say this to show my lack of experience, which leads me to keszegh's comment on versions. As I said, I only have experience making three games (the one I'm working on now in Gideros is a remake of one of the games I did in löve, I'm a bit overwhelmed with learning things. I'm learning how to make sprite sheets/tile maps, making images/graphics for the games (raster images in Gimp and vector images in Inkscape) and Gideros. Though I've thought about it and looked at some versioning systems, I'm not terribly interested in taking on another learning project at this time. I'm planning on looking into that if I ever successfully finish this current game.
Nor am I terribly interested in trying to learn Android Studio at this time (or probably ever, beyond what I need for exporting to Android from a different framework).
Regarding plugins, I'm not usin ang (at least that I know of). In fact I don't really know anything about using plugins. I'm using some libraries, like TextWrap, scenemanager, json, gtween and easing. Note: I have added json.lua and gtween.lua to my project, but I haven't done anything with either of them as yet. I expect I will, but I'm not sure, especially gtween.
This is my workflow for mobile games:
1. Build a Gideros player for Android or iOS
2. Test the game directly on device from the first line of code. Doing this saves a lot of time to do with performance, multi touch and other device specific things.
3. Build a new player every time I need to add a plugin and continue to test on device.
Following this workflow means virtually no faff when you come to publish the game.
If I missed the point of your posts @rpallen maybe someone else will read this and learn something.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
First, let me remind everyone that the problem only occurs when I run the game on my Android phone after exporting the project from Gideros Studio on my laptop, where it works fine.
It appears that my phone doesn't like what I'm doing with a module. I was basically troubleshooting by rebuilding the project and frequently exporting it until it "broke", i.e., I got the "program stopped" error on the phone.
I couldn't figure out what in my module was causing the problem so I created a VERY simple module and call to it and even that doesn't work.
The module file is dataModule.lua
The only code in the file is:
--create the table that this module returns
local M = {}
M = {"first", "second", "third"}
return M
Then, in main.lua there are the statements:
question = require "dataModule"
print(question[1],question[2],question[3])
Again, this works fine in GiderosPlayer on my laptop, but not on my phone when I export it. If I comment out those 2 lines in main.lua, the exported program runs fine on the phone.
One note, first I tried commenting out just the print(question[1],question[2],question[3]) line, but it still didn't work. But when both lines are commented out, it works.
Am I doing something wrong with this module?
require "dataModule" - no need
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
I tried removing require and it printed nil for the 3 values of question.
I then tried removing the quotes around dataModule and got: main.lua:15: attempt to index global 'question' (a nil value).
I also tried question = M and got the same result. So how do I access the data in dataModule if I don't use require?
I also tried using M instead of question in the print statement:
print(M[1],M[2],M[3]) and that doesn't work either.
This doesn't explain why it works in the player but not when exported you may ask. This is because when you export the project, gideros pre-compile all lua files and merge together all files that needs to be executed at start, so individual files are no longer present and no longer 'require'-able
Likes: oleg, totebo, SinisterSoft
local M = {}M = {}
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!