Problem when using Apktool

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
HungerBoatz
Prole
Posts: 11
Joined: Tue Dec 19, 2017 3:08 pm

Problem when using Apktool

Post 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 6060 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 6059 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.
User avatar
yetneverdone
Party member
Posts: 448
Joined: Sat Sep 24, 2016 11:20 am
Contact:

Re: Problem when using Apktool

Post by yetneverdone »

Did you correctly `cd` into the directory?

To make sure you're in the right path print out `ls`
Funlife2003
Prole
Posts: 10
Joined: Mon Jul 06, 2020 10:47 am

Re: Problem when using Apktool

Post by Funlife2003 »

i suggest you use loveToAndroid to make an apk. it's way easier.
https://love2d.org/forums/viewtopic.php ... eToAndroid
User avatar
AuahDark
Party member
Posts: 107
Joined: Mon Oct 23, 2017 2:34 pm
Location: Indonesia
Contact:

Re: Problem when using Apktool

Post 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.
Profile. Do you encounter crashes in LÖVE Android and wanna send me logcats? Please hit me up in LÖVE Discord and send the full logcat file!
HungerBoatz
Prole
Posts: 11
Joined: Tue Dec 19, 2017 3:08 pm

Re: Problem when using Apktool

Post 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.
HungerBoatz
Prole
Posts: 11
Joined: Tue Dec 19, 2017 3:08 pm

Re: Problem when using Apktool

Post 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. :(
HungerBoatz
Prole
Posts: 11
Joined: Tue Dec 19, 2017 3:08 pm

Re: Problem when using Apktool

Post 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.
User avatar
AuahDark
Party member
Posts: 107
Joined: Mon Oct 23, 2017 2:34 pm
Location: Indonesia
Contact:

Re: Problem when using Apktool

Post by AuahDark »

The APKTool tutorial is intended for PC or Mac, so for mobile with terminal emulator, YMMV.
Profile. Do you encounter crashes in LÖVE Android and wanna send me logcats? Please hit me up in LÖVE Discord and send the full logcat file!
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests