Package Details: android-apktool-git 2.2.4.r5.g2f387288-2

Git Clone URL: https://aur.archlinux.org/android-apktool-git.git (read-only, click to copy)
Package Base: android-apktool-git
Description: a tool for reengineering Android apk files
Upstream URL: https://ibotpeaches.github.io/Apktool/
Licenses: Apache
Conflicts: android-apktool
Submitter: Manouchehri
Maintainer: depau
Last Packager: depau
Votes: 5
Popularity: 0.000000
First Submitted: 2013-11-01 22:16 (UTC)
Last Updated: 2020-04-13 22:19 (UTC)

Dependencies (6)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

Score_Under commented on 2023-08-28 13:51 (UTC)

been getting this from package() since 6th Aug:

install: cannot stat '/build/android-apktool-git/src/Apktool/brut.apktool/apktool-cli/build/libs/apktool*small.jar': No such file or directory

In that directory I end up with only:

-rw-r--r-- 1 root root 29561592 Aug 28 13:08 apktool-cli-all.jar
-rw-r--r-- 1 root root 22867227 Aug 28 13:14 apktool-v2.8.1-55-81a7e1e4-SNAPSHOT.jar

Hattshire commented on 2021-06-08 21:35 (UTC) (edited on 2021-06-08 21:38 (UTC) by Hattshire)

Using repo's community/gradle breaks the build, I suggest going back to Gradle wrapper.

> Task :brut.apktool:apktool-lib:processResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':brut.apktool:apktool-lib:processResources'.
> Entry properties/apktool.properties is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.0.2/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.

Also, proguard needs maximum java v58.0 (JDK14):

> Task :brut.apktool:apktool-cli:proguard FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':brut.apktool:apktool-cli:proguard'.
> java.io.IOException: Can't read [/usr/lib/jvm/java-15-openjdk/jmods/java.base.jmod(;;;;;;;!**.jar;!module-info.class)] (Can't process class [java/lang/CharacterData00.class] (Unsupported version number [59.0] (maximum 58.0, Java 14)))

It built succesfully using Gradle wrapper and java=jdk11-openjdk.

cameel commented on 2020-04-11 17:08 (UTC) (edited on 2020-04-11 17:11 (UTC) by cameel)

Some improvement suggestions regarding the PKBUILD:

  • By default gradle starts a daemon and leaves it running in the background. Great for development but completely unnecessary when we're just building a package. You can use --no-daemon to disable it.

  • I'm not sure what's the official Arch recommendation about Gradle Wrapper, but gradle 6.3 from the official repos works just fine. I even unpacked the .jars built with and without the wrapper to make sure and the contents were identical byte-for-byte. You could add gradle to makedepends and prevent the unnecessary download of gradle-5.6.4-all.zip for those who already have it installed.

So, to summarize, I would suggest changing the build command to:

gradle build proguard --no-daemon

yan12125 commented on 2018-06-18 15:35 (UTC)

Disowned as I use android-apktool instead.

yan12125 commented on 2017-03-24 14:49 (UTC)

Target "applyPatches" is no longer in the latest git master. * What went wrong: Task 'applyPatches' not found in root project 'Apktool'. Removing this line brings a working PKGBUILD, and apparently the resultant package works fine.

Manouchehri commented on 2015-12-16 19:01 (UTC)

Done.

HaoZeke commented on 2015-12-04 14:16 (UTC)

Hey, please update the build() portion to include ./gradlew applyPatches

Manouchehri commented on 2015-10-08 18:19 (UTC)

I'm already using that repository?

MreDD commented on 2015-10-08 17:35 (UTC)

his work has been moved to github. https://github.com/iBotPeaches/Apktool

Manouchehri commented on 2015-03-12 20:50 (UTC)

Version bump. Is everyone okay with the version name or would you prefer if I shortened it?