Android - Upgrading to 3.1.6 doesn't build anymore (Branch.aar not loaded)
See original GitHub issueHi,
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:
- Created 5 years ago
- Reactions:3
- Comments:9 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi,
After a few tests, I can confirm it works with
cordova-android@7.1.4
but not withcordova-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
@echo-branch thanks!