Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building apktool #21

Open
Revlin opened this issue Jun 12, 2012 · 1 comment
Open

Building apktool #21

Revlin opened this issue Jun 12, 2012 · 1 comment

Comments

@Revlin
Copy link

Revlin commented Jun 12, 2012

This issue has been on the google code website for 5 months now (http://code.google.com/p/android-apktool/issues/detail?id=284). There's a work around posted there, but the work around doesn't work, so maybe someone here has another one. I believe this is specific to nux-based development environments.

What steps will reproduce the problem?

  1. $ git clone git://github.com/brutall/brut.apktool.git apktool
  2. $ cd apktool
  3. $ mvn package

What is the expected output? What do you see instead?
Expected a successful build but the following output is generated:

Downloading: http://android-apktool.googlecode.com/svn/m2-releases/brut/apktool/smali/smali-pom/1.0-SNAPSHOT/smali-pom-1.0-SNAPSHOT.pom
[INFO] Unable to find resource 'brut.apktool.smali:smali-pom:pom:1.0-SNAPSHOT' in repository android-apktool.googlecode.com (http://android-apktool.googlecode.com/svn/m2-releases)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: brut.apktool.smali:smali:jar:${aversion}

Reason: Cannot find parent: brut.apktool.smali:smali-pom for project: brut.apktool.smali:smali:jar:${aversion} for project brut.apktool.smali:smali:jar:${aversion}

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Mon Jun 11 21:20:37 PDT 2012
[INFO] Final Memory: 16M/39M
[INFO] ------------------------------------------------------------------------

K, so here is the workaround that was posted in google code Issue 284:

  1. Open the subdirectory "repository\brut\apktool" in your local maven repository. It is usually located in you user home directory in a directory named ".m2".
  2. Edit the following files:

smali\baksmali\1.3.0-brut6\baksmali-1.3.0-brut6.pom
smali\dexlib\1.3.0-brut6\dexlib-1.3.0-brut6.pom
smali\smali\1.3.0-brut6\smali-1.3.0-brut6.pom
smali\util\1.3.0-brut6\util-1.3.0-brut6.pom

in each of this files replace

"${aversion}" or "${version}" with
"1.3.0-brut6"

and 4 lines below in the element replace

"1.0-SNAPSHOT" with "1.0-brut1"

Afterwards the "mvn package" command will succeed.

Except that the build does not succeed, I get the same output. Seems like some other file is responsible for the faulty version tag but I don't know which one. Anybody?

@tomdebenning
Copy link

Has anyone been able to resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants