question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android - Upgrading to 3.1.6 doesn't build anymore (Branch.aar not loaded)

See original GitHub issue

Hi,

We’ve noticed an issue with Android from version 3.1.6 (which was unintentionally upgraded during our work). It appears the Branch.aar isn’t located in the right place anymore.

From what I’ve found the file is copied to app/libs however Gradle isn’t looking in this directory. Manually copying the file onto libs solve the issue.

Recent changes to the build configuration might cause this: https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking/commit/7df49cb0ee351a6faa6eddf052464167baedf4a8

Error examples:

app/platforms/android/src/io/branch/BranchSDK.java:21: error: package io.branch.indexing does not exist
import io.branch.indexing.BranchUniversalObject;
app/platforms/android/src/io/branch/BranchSDK.java:31: error: package io.branch.referral.util does not exist
import io.branch.referral.util.ProductCategory;
...

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Unibozucommented, Mar 22, 2019

Hi,

After a few tests, I can confirm it works with cordova-android@7.1.4 but not with cordova-android@6.4.0. I’ve simply created an empty cordova app, added cordova-android 6.4 and your plugin to reproduce it.

Hope this helps

0reactions
Unibozucommented, Feb 11, 2020

@echo-branch thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Direct local .aar file dependencies are not supported
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android...
Read more >
Different Ways to Create aar File in Android Studio
Like creating the Jar file, an Android project must be created first, then the Android library module can be created and added.
Read more >
Gradle build does not support local aar dependencies.
I seem to have found a problem with the Gradle build system. It doesn't seem to be picking up any classes from .aar...
Read more >
Package Index - Steerpath SDK - Amazon S3
Javadoc API documentation for Steerpath SDK for Android.
Read more >
Add build dependencies - Android Developers
Learn how to add build dependencies using the Gradle build system in Android Studio.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found