Page 1 of 1

Problem when using Apktool

Posted: Sun Jul 19, 2020 2:46 pm
by HungerBoatz
I wanna try to build my love2d game on my mobile phone, but i dont know how to export it into apk file. Then i found this Apktool in love2d official website. But when im using it , i had a problem.
Im using termux to do my terminal commands
Im using termux to do my terminal commands
Screenshot_20200719_211341.jpg (143.64 KiB) Viewed 6091 times
There's no mistakes about my folder name, its name already same and correct.

Here what is in my love_decoded folder:
Screenshot_20200719_211429.jpg
Screenshot_20200719_211429.jpg (143.16 KiB) Viewed 6090 times
Here what i write in AndroidManifest.xml

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest package="com.simplepong"
      android:versionCode="1"
      android:versionName="1.0"
      android:installLocation="auto" xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="18"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="18"/>
    <!--Uncomment line below if your game uses microphone capabilities. !-->
    <!--uses-permission android:name="android.permission.RECORD_AUDIO" /!-->
    <uses-feature android:glEsVersion="0x00020000"/>
    <application
        android:allowBackup="true"
        android:icon="@drawable/love"
        android:label="SimplePong"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
    >
        <activity
            android:configChanges="orientation|screenSize"
            android:label="SimplePong"
            android:launchMode="singleTask"
            android:name="org.love2d.android.GameActivity"
            android:screenOrientation="sensorLandscape"
        >
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
                <category android:name="tv.ouya.intent.category.GAME"/>
            </intent-filter>
        </activity>
    </application>
</manifest>
i think I already followed the instructions of Apktool in love2d website carefully. Look! The code which i wrote in androidmanifest is from that website.

Re: Problem when using Apktool

Posted: Sat Jul 25, 2020 8:28 am
by yetneverdone
Did you correctly `cd` into the directory?

To make sure you're in the right path print out `ls`

Re: Problem when using Apktool

Posted: Sat Jul 25, 2020 2:52 pm
by Funlife2003
i suggest you use loveToAndroid to make an apk. it's way easier.
https://love2d.org/forums/viewtopic.php ... eToAndroid

Re: Problem when using Apktool

Posted: Sat Jul 25, 2020 3:06 pm
by AuahDark
loveToAndroid doesn't updated to latest LOVE 11.3.

To OP, I suggest you to do the game packaging in PC or Mac.

Re: Problem when using Apktool

Posted: Sun Jul 26, 2020 12:24 am
by HungerBoatz
yetneverdone wrote: Sat Jul 25, 2020 8:28 am Did you correctly `cd` into the directory?

To make sure you're in the right path print out `ls`
Yes. I often check my path using 'ls' everytime i want to clone something or running some of command. But still got the same problem. My path which im in, already correct.

I thought the error was because some of my files in love_decoded folder are missing. But im not sure whether its missing or not. If yes, i dont know which files are missing.

Re: Problem when using Apktool

Posted: Sun Jul 26, 2020 12:30 am
by HungerBoatz
Funlife2003 wrote: Sat Jul 25, 2020 2:52 pm i suggest you use loveToAndroid to make an apk. it's way easier.
https://love2d.org/forums/viewtopic.php ... eToAndroid
Yes, its very easy to use. I already tried it but had a problem too with it when i run the bash file in my terminal. :(

Re: Problem when using Apktool

Posted: Sun Jul 26, 2020 12:39 am
by HungerBoatz
AuahDark wrote: Sat Jul 25, 2020 3:06 pm loveToAndroid doesn't updated to latest LOVE 11.3.

To OP, I suggest you to do the game packaging in PC or Mac.
I never used apktool on pc before but i'll try it when i can use my pc back. i cannot use my pc for a moment because of some problems. So while waiting my pc, im trying to build my apk on my mobile device.

Re: Problem when using Apktool

Posted: Tue Aug 04, 2020 11:29 am
by AuahDark
The APKTool tutorial is intended for PC or Mac, so for mobile with terminal emulator, YMMV.