Spark-setup-android attr fontPath [SOLVED]

Hi!

I’m trying to build a customized version of “spark-setup-android” and drop the resulting .aar file inside my app (vs referring to spark-setup-android in build.gradle)

I can build the devicesetup .aar file just fine, however, when I try to build my app with the devicesetup-release.aar in my app/libs folder, I get the following gradle error:

rrizun@rrizun-XPS-8300:~/AndroidStudioProjects/cleverpet-android-app:master$ ./gradlew build
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE
:app:prepareComAndroidSupportCardviewV72340Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2340Library UP-TO-DATE
:app:prepareComAndroidSupportMultidex101Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE
:app:prepareComAndroidVolleyVolley100Library UP-TO-DATE
:app:prepareComGoogleAndroidFlexbox022Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAuth900Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAuthBase900Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBase900Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBasement900Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesTasks900Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseCommon900Library UP-TO-DATE
:app:prepareDevicesetupRelease1Library UP-TO-DATE
:app:prepareIdentitytoolkitApi11Library UP-TO-DATE
:app:prepareIoParticleCloudsdk034Library UP-TO-DATE
:app:prepareNetDanlewAndroidJoda290Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources
/home/rrizun/AndroidStudioProjects/cleverpet-android-app/app/build/intermediates/exploded-aar/devicesetup-release-1/res/values/values.xml:259:5-266:13: AAPT: No resource found that matches the given name: attr 'fontPath'.
    
/home/rrizun/AndroidStudioProjects/cleverpet-android-app/app/build/intermediates/exploded-aar/devicesetup-release-1/res/values/values.xml:267:5-280:13: AAPT: No resource found that matches the given name: attr 'fontPath'.
    
:app:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/rrizun/Android/Sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.187 secs

any ideas? or is there a better way to build a customized “spark-setup-android” for use in my app ?

Thanks!
-Randy

figured it out… you can’t just drop the .aar file in your app because the .aar file’s dependencies won’t get resolved… you hafta publish the .aar file to, e.g., say a local maven repo (e.g., using uploadArchives), and then reference that from your app… in this way the .aar file’s dependencies will get resolved

1 Like

I’m glad you were able to resolve this!