Monday, October 30, 2017

AAPT2 and PYDroid

AAPT2 has a strange issue it seems.

Let me explain how the PYDroid library is structured:

There is a core library, pydroid, which handles some extremely basic stuff that is common to all pyamsoft apps. Building off of this basic library is pydroid-util, which as the name suggests, includes utility functions that are not always needed. Building off of the pydroid-util library is the pydroid-ui and pydroid-loader libraries, which power much of the UI commonality you observe in pyamsoft Android applications.

When building Home Button today using the new Android Studio 3 goodies, I found that it was unable to fully build the project due to some resource errors, where application dependency's dependencies were not pulled into the main application. This meant that if pydroid relied on RxJava for example, it would not actually be pulled in to an application which relied on PYDroid, and so the application would either fail to build or crash when it finally did run.

It seems that changing the pydroid library's build.gradle file from using the new api and implementation syntax back to the old compile syntax fixed this issue. It's unfortunate though, since Android Studio 3 builds a lot faster with its new syntax, but it is fundamentally broken. I hope to port over the rest of the pyamsoft Android applications to the Android Studio 3 syntax now that this library issues has been resolved, and release an update later this week.

Stay tuned.

========================
Follow pyamsoft around the Web for updates and announcements about the newest applications!
Like what I do?

Send me an email at: pyam.soft@gmail.com
Or find me online at: https://pyamsoft.blogspot.com

Follow my FaceBook Page
Follow my Google+ Page
=========================