Closed GoogleCodeExporter closed 9 years ago
I have the same problem except my project has multiple aar dependencies and 1
apklib. and the apklib is causing the problem...
Original comment by Ben...@afrogleap.com
on 8 Jan 2014 at 1:38
Same issue here, my app is crashing constantly when I build with 3.8.2. I have
multiple apklibs, no aar libs, so I suspect this issue isn't tied to aar. I
can reproducibly get this in my app building with 3.8.2. Changing back to
3.8.1, it works fine.
I've looked at the maven build output for the aapt commands, they seem to have
change a bit in 3.8.2. The only real difference I see is in the
generate-sources goal, here's a comparison of 3.8.1 vs 3.8.2.
3.8.1:
...
[INFO] /Users/jon/android-sdk-mac_x86/build-tools/19.0.1/aapt [package, -m, -J,
/Users/jon/code/p1v/gs-android/myapp/target/generated-sources/r, -M,
/Users/jon/code/p1v/gs-android/myapp/AndroidManifest.xml, -S,
/Users/jon/code/p1v/gs-android/myapp/target/filtered-res, -S,
/Users/jon/code/p1v/gs-android/myapp/target/unpack/apklibs/com.starkmobile_base_
apklib_0.3.5-SNAPSHOT/res, -S,
/Users/jon/code/p1v/gs-android/myapp/target/unpack/apklibs/com.google.android.gm
s_google-play-services-for-froyo_apklib_12.0.0/res, -S,
/Users/jon/code/p1v/gs-android/myapp/target/unpack/apklibs/com.actionbarsherlock
_actionbarsherlock_apklib_4.4.0/res, -S,
/Users/jon/code/p1v/gs-android/myapp/target/unpack/apklibs/com.viewpagerindicato
r_library_apklib_2.4.1/res, -S,
/Users/jon/code/p1v/gs-android/myapp/target/unpack/apklibs/com.readystatesoftwar
e_mapviewballoons_apklib_1.0.1/res, --auto-add-overlay, -I,
/Users/jon/android-sdk-mac_x86/platforms/android-19/android.jar,
--output-text-symbols, /Users/jon/code/p1v/gs-android/myapp/target]
...
3.8.2:
...
[INFO] /Users/jon/android-sdk-mac_x86/build-tools/19.0.1/aapt [package, -f,
--no-crunch, -I,
/Users/jon/android-sdk-mac_x86/platforms/android-19/android.jar, -M,
/Users/jon/code/p1v/gs-android/myapp/AndroidManifest.xml, -S,
/Users/jon/code/p1v/gs-android/myapp/target/filtered-res, -S,
/Users/jon/code/p1v/gs-android/myapp/target/unpacked-libs/com.starkmobile_base_a
pklib_0.3.5-SNAPSHOT/res, -S,
/Users/jon/code/p1v/gs-android/myapp/target/unpacked-libs/com.google.android.gms
_google-play-services-for-froyo_apklib_12.0.0/res, -S,
/Users/jon/code/p1v/gs-android/myapp/target/unpacked-libs/com.actionbarsherlock_
actionbarsherlock_apklib_4.4.0/res, -S,
/Users/jon/code/p1v/gs-android/myapp/target/unpacked-libs/com.viewpagerindicator
_library_apklib_2.4.1/res, -S,
/Users/jon/code/p1v/gs-android/myapp/target/unpacked-libs/com.readystatesoftware
_mapviewballoons_apklib_1.0.1/res, -A,
/Users/jon/code/p1v/gs-android/myapp/target/generated-sources/combined-assets/as
sets, -m, -J, /Users/jon/code/p1v/gs-android/myapp/target/generated-sources/r,
--output-text-symbols, /Users/jon/code/p1v/gs-android/myapp/target,
--auto-add-overlay]
...
Original comment by jdeyo...@gmail.com
on 10 Jan 2014 at 2:12
[deleted comment]
Could you share us the pom (dependency only) you used in your apk project
Original comment by benoit.b...@gmail.com
on 11 Jan 2014 at 2:44
First report was only about aar that was created by maven plugin. It contain
some bug in resource and it is not possible use it in Graddle project.
Original comment by tomas.pr...@gmail.com
on 16 Jan 2014 at 8:27
OK, I checked out https://github.com/inmite/android-styled-dialogs and it
builds just fine using android-maven-plugin:3.8.2 (once I switched the library
to build an aar instead of apklib).
Deployed the demo and all functions of the demo work fine.
Unless someone can provide a project in which this fails I'm going to close the
issue.
Original comment by william....@xandar.com.au
on 18 Jan 2014 at 10:02
For me this can be closed as when you have a project using ONLY aar's
everything is working fine.
If you have a project with aar's and apklib's or only apklib's then we have an
issue ( see ticket 441
https://code.google.com/p/maven-android-plugin/issues/detail?id=441 )
Original comment by benoit.b...@gmail.com
on 19 Jan 2014 at 10:39
I have tried it again and it works now. StyledDialogs code have changed in the
meantime, so I guess it was something in the particular library. Please close
this issue.
Original comment by m...@destil.cz
on 21 Jan 2014 at 3:09
Fixed in 3.9.0
Original comment by william....@xandar.com.au
on 27 Feb 2014 at 10:29
Original issue reported on code.google.com by
m...@destil.cz
on 31 Dec 2013 at 12:12