help o help

Started by mainsworthy, January 06, 2022, 02:01:38

Previous topic - Next topic

mainsworthy

hi, I have been trialing and error thisfor ages, cant get it working, but im half way there maybe.

First i have got monky 2 to compile my project for android, wow could not believe this, so i now am trying to build the android executable AFK , how ? im using the android studio, but i cant get round all the errors dont know what im doing. if the code comes from monkey 2 isnt there a simple method to put it into the studio, or is there another way to make the AFK?

I really want to be able to dev for android but this is hard.

therevills

Hey, so are you using Monkey2 or Wonkey?

It's been a while since I used M2, but I thought with the changes made to Android in the last few years made Monkey2 Android code incompatible (I could be wrong though).

What errors are you getting?


mainsworthy

Im getting build errors for $PROJECT NAME,   and its not recognising the sdr.dir= the ndk-bundle location. when i try to change something to fix it , then i get other things, but these two seem to be the problem.  im using monkey 2


therevills

What's in your env_windows.txt (monkey2dir/bin) for the Android target section?

mainsworthy

#4
Quote from: therevills on January 06, 2022, 02:46:00
What's in your env_windows.txt (monkey2dir/bin) for the Android target section?

i got through the compile succesfully, but it was users\me\AppData\Local\Android\sdk\ndk-bundle is pretty close, the ndk-bundle can still be installed on android studio, so i was able to link in with monkey 2 and compile. but now im trying to build in android studio, what is was thinking is im getting enviroment variables errors for the build, can i just set them somehow in android studion like PROJECT NAME="Mygame" and sdr.dir=d:\...\ndk-bundle , also i feel it may be trying to use the newer SDK for the building thats why it does not see ndk-bundle..

I think the studio is building with he new SDK, how to i tell it to use ndk-bundle?

Midimaster

#5
I don't know how big your project already is, but if you are still in the beginning....

Did you think about changing to B4X?
https://www.b4x.com/

This is a basic compiler on Windows that writes Android apps. You develop on the Windows computer, but when you press F5 your apps starts directly on the Smartphone. Already during the development. Also in DEBUG mode, where the smartphone reports the bugs back to the windows console.

This is super-easy to use!



...on the way to Egypt

mainsworthy

thx, i will have a look. still want to port my mk2 though


therevills

Cant really help without knowing the new error  :P

mainsworthy

#9
well I have now built a debug-apk file for latest android version , I dont have an android device and the PC running android studio is old and its a pain to run the emulator , practically imposible . I got an error failed to commit install session ,, cmd package install commit ???????numbers    , so my question is do i have a android app created now, is the failed to commit an emulator command to accept an install or something, do 9 need do anything else with the apk, why is is a debug version?  what files to i use to put on a device , i surly dont need all the bumf that comes with the apk?

I dont know how i did it, it was like cracking a nut with a sledgehammer, trial and error for days, but if anybody want the info let me know?

therevills

Quote from: mainsworthy on January 07, 2022, 04:55:12
I dont know how i did it, it was like cracking a nut with a sledgehammer, trial and error for days, but if anybody want the info let me know?

Also nice to post the info :) For you and the community.


mainsworthy

#11
edit

mainsworthy

one other tip, all monkey 2 projects generated are the same, so you can copy all you build files and just change names etc..

mainsworthy

I believe it makes monkey 2 relavant if you can compile to android 12.

3DzForMe

Great achievement mainsworthy!
BLitz3D, IDEal, AGK Studio, BMax, Java Code, Cerberus
Recent Hardware: Dell Laptop
Oldest Hardware: Commodore Amiga 1200 with 1084S Monitor & Blitz Basic 2.1