Package Details: android-apktool 2.12.0-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: 254
Popularity: 0.72
First Submitted: 2010-10-25 15:09 (UTC)
Last Updated: 2025-07-20 23:28 (UTC)

Dependencies (3)

Sources (1)

Latest Comments

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

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

Auerhuhn commented on 2025-03-23 19:01 (UTC)

Thanks a bunch @Muflone!

Muflone commented on 2025-03-23 18:15 (UTC)

@Auerhuhn I've temporarily applied your fix to pin jdk to version 21