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: 1.86
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 »

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

Auerhuhn commented on 2025-03-23 11:28 (UTC) (edited on 2025-03-23 11:29 (UTC) by Auerhuhn)

Hi @Muflone,

Since jdk-openjdk was bumped from version 23 to 24, this build has been failing:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':check'.
> Could not create task ':test'.
   > Could not create task of type 'Test'.
      > Could not create an instance of type org.gradle.api.internal.tasks.testing.DefaultTestTaskReports.
         > Could not create an instance of type org.gradle.api.reporting.internal.DefaultReportContainer.
            > Type T not present

Pinning the makedepends entry to Java 21 fixes it:

diff --git a/PKGBUILD b/PKGBUILD
index 418c928..fbb0e1d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,17 +4,19 @@
 pkgname=android-apktool
 pkgver=2.11.1
 pkgrel=1
+_jdkver=21
 pkgdesc="a tool for reengineering Android apk files"
 arch=('any')
 url="https://github.com/iBotPeaches/Apktool"
 license=('Apache-2.0')
 depends=('java-runtime')
-makedepends=('java-environment' 'gradle')
+makedepends=("jdk${_jdkver}-openjdk" 'gradle')
 source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/iBotPeaches/Apktool/archive/refs/tags/v${pkgver}.tar.gz")
 sha256sums=('1c1ac3add61c5d9043b5efdb228fbd2be7c3bd329bb6ed82228eedacef90bcb9')

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

Muflone commented on 2024-10-13 16:54 (UTC)

@Mitmischer this package uses the sources from the author while android-apktool-bin uses a prebuilt package