Package Details: android-apktool 3.0.1-1

Git Clone URL: https://aur.archlinux.org/android-apktool.git (read-only, click to copy)
Package Base: android-apktool
Description: A tool for reengineering Android apk files
Upstream URL: https://github.com/iBotPeaches/Apktool
Licenses: Apache-2.0
Submitter: TamCore
Maintainer: Muflone
Last Packager: Muflone
Votes: 256
Popularity: 2.80
First Submitted: 2010-10-25 15:09 (UTC)
Last Updated: 2026-03-01 17:34 (UTC)

Dependencies (3)

Sources (1)

Latest Comments

1 2 3 4 5 6 .. 9 Next › Last »

Tyilo commented on 2026-01-15 10:24 (UTC)

I couldn't get the gradle8 AUR package to build, but using @kriskras99 solution worked for me:

diff --git a/PKGBUILD b/PKGBUILD
index 5086993..b3e07af 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,14 +10,14 @@ arch=('any')
 url="https://github.com/iBotPeaches/Apktool"
 license=('Apache-2.0')
 depends=('java-runtime')
-makedepends=("java-environment=${_jdkver}" 'gradle8')
+makedepends=("java-environment=${_jdkver}")
 source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/iBotPeaches/Apktool/archive/refs/tags/v${pkgver}.tar.gz")
 sha256sums=('f23230a102b762f5349896308d9d57fe3fd95cb2f3ad4426286a1f918680cec1')

 build() {
   cd "Apktool-${pkgver}"
   export JAVA_HOME="/usr/lib/jvm/java-${_jdkver}-openjdk"
-  gradle8 build --no-daemon shadowJar proguard
+  ./gradlew build --no-daemon shadowJar proguard
 }

 package() {

raxod502 commented on 2025-12-29 21:52 (UTC)

If we use ./gradlew instead of gradle8, then it would decrease the number of AUR dependencies required by one, and in addition it would reduce future build failures because we would use exactly the version of Gradle supported by upstream. Would this be an acceptable change?

painfularch commented on 2025-11-30 15:29 (UTC)

can't build with jdk21-temurin package, I suspect line 19 is the culprit:

export JAVA_HOME="/usr/lib/jvm/java-${_jdkver}-openjdk"

could you please just use the default jdk21 provided by the system? java-runtime=21 is already enforced by makedepends.

flocke commented on 2025-11-01 13:15 (UTC)

It looks exactly like @kriskras99 says, apktool is apparently not compatible with gradle 9 yet.

Just switching back to gradle 8 works fine:

diff --git a/PKGBUILD b/PKGBUILD
index fb63190..a26dd17 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,14 +10,14 @@ arch=('any')
 url="https://github.com/iBotPeaches/Apktool"
 license=('Apache-2.0')
 depends=('java-runtime')
-makedepends=("java-environment=${_jdkver}" 'gradle')
+makedepends=("java-environment=${_jdkver}" 'gradle8')
 source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/iBotPeaches/Apktool/archive/refs/tags/v${pkgver}.tar.gz")
 sha256sums=('d87a589778d4369362a99c83a67ca3d365891395aba1be1b85dbf04e72cd3298')

 build() {
   cd "Apktool-${pkgver}"
   export JAVA_HOME="/usr/lib/jvm/java-${_jdkver}-openjdk"
-  gradle build --no-daemon shadowJar proguard
+  gradle8 build --no-daemon shadowJar proguard
 }

 package() {

kriskras99 commented on 2025-10-13 14:22 (UTC)

The build succeeds when replacing gradle with ./gradlew on line 20. The wrapper uses Gradle 8.7, so Apktool is most likely not compatible with Gradle 9.

Wennadocta commented on 2025-09-19 19:56 (UTC)

Doesn't build, errors in code

* What went wrong:
Script compilation errors:

  Line 016:         rootProject.exec {
                                ^ Unresolved reference 'exec'.

  Line 017:             commandLine("git", "describe", "--tags")
                        ^ Unresolved reference 'commandLine'.

  Line 018:             standardOutput = stdout
                        ^ Unresolved reference 'standardOutput'.

  Line 029:         rootProject.exec {
                                ^ Unresolved reference 'exec'.

and the list goes on

Muflone commented on 2025-08-18 14:44 (UTC)

@Popolon gradle is still in the extra repository

https://archlinux.org/packages/?q=gradle

Popolon commented on 2025-08-16 10:31 (UTC) (edited on 2025-08-16 11:08 (UTC) by Popolon)

Gradle package doesn't exists anymore, maybe it can be replaced by AUR gradle4?

Looks like classyshark (there is an AUR package) is replacing apktool, at least for analysis.

Muflone commented on 2025-07-25 18:39 (UTC)

@rusball make sure to use git+pkgctl build or make sure to clean your AUR helper cache.

rusball commented on 2025-07-25 18:27 (UTC)

When i'm trying to install android-apktool from aur, it installs to me android-apktool-2.7.0-1