Comments (18)
I tried testing with a similar setup as explained by you and it worked. Can you please share a sample project? Have you used the word embedded for firstlibrary?
from android-fat-aar.
Here is the zip containing a library project that adds activity which starts activity from a proprietary AAR available from Maven and test project that imports the merged AAR generated by library project: MergeAARTest.zip
from android-fat-aar.
Worked for me with gradle plugin 1.5.0
The release aar generated by you was missing the Resources R file for the embedded library. Not sure if that is an issue with 2.0 plugin as I didn't test with it.
from android-fat-aar.
I can confirm that compileReleaseJavaWithJavac does not use the generated R file from embedded library in 2.0.0-alpha3 which results in the problem. Will need to look into the code for the task in 2.0.0
Meanwhile a solution can be to change the path in the embedRClassFiles to the main/src
from android-fat-aar.
Changing the path to main/src doesn't work either.
Android 2.0.0 plugin seems to explicitly ignore all R.java files during compilation (tested by creating a R.java class in a different package). This seems to be tricky to fix, will check next week.
from android-fat-aar.
Wow, it really works with gradle plugin 1.5.0. This is a great news! The 2.0.0 issue might be an upstream bug, or feature required to support instant run. I suggest filing a bug report to gradle plugin developers and ask their opinion on how to perform the same task with new plugin.
Let's keep this issue open until solution for plugin 2.0.0 is found. Thank you for helping me out.
from android-fat-aar.
The 2.0.0 plugin has now been released and is now official tool for android development. Adding support for it should be important now.
from android-fat-aar.
@adwiv Do you have plans to resolve this for 2.0.0? I too have multiple aars and your plugin is what currently works to bundle everything. If not, can you recommend an alternative?
from android-fat-aar.
confirm this bug with "com.android.tools.build:gradle:2.1.2" and gradle 2.14. #19 related
from android-fat-aar.
Same here
from android-fat-aar.
This problem is exist still when gradle is up 2.0.0, I thought whether can modify import xxx.xxx.lib.R
of *.java of lib to import xxx.xxx.R
?
from android-fat-aar.
Fixed in latest version tested with android gradle 2.2.0.
Kindly test and open new issue for any problems.
from android-fat-aar.
Many thanks! will report when testing it
from android-fat-aar.
Hi,
I am testing the library with 'com.android.tools.build:gradle:2.2.1' and Gradle 3.1.
I created my fat aar containing an .aar library. But when I try to use my newly created fat .aar library I get an error on the resources.
See attached image for reference.
Any idea of what can be happening?
Thanks in advance.
from android-fat-aar.
Hi, can you please test with the latest release of script.
If there are any problems please open a new issue?
There may be some change with gradle 3.1 as I am still using the bundled gradle 2.14.1
from android-fat-aar.
Hi
Thanks for the quick response.
I tested with the last version I guess.
I am using this:
apply from: 'https://raw.githubusercontent.com/adwiv/android-fat-aar/master/fat-aar.gradle'
from android-fat-aar.
I had problem with bundled resources and my pattern (in Android Studio) is to "Rebuild" every time when changing gradle files + sync. Try also the "Clean" operation.
from android-fat-aar.
I have the same issue as in the first mail.
Try with gradle plugin 1.5 - unfortunately it doesn`t help.
Maybe somebody find another solution
from android-fat-aar.
Related Issues (20)
- Support apply plugin: 'com.android.application'? HOT 1
- unknown property 'packageReleaseResources' HOT 1
- Error:(61, 0) Could not find method compile() for arguments [project ':croplibrary', build_dijfgbzqt6st566goauqc2hu4$_run_closure3@60f84416] on project ':imageeditlibrary' of type org.gradle.api.Project. <a href="openFile:C:\Users\kingdee\Desktop\ImageEditor-Android-master\imageeditlibrary\build.gradle">Open File</a> HOT 1
- Doesn't work with new Android Gradle 3.0 plugin HOT 18
- java.lang.NoClassDefFoundError: Failed resolution of: *****/R$raw; HOT 8
- can't merge libs in a aar library HOT 4
- Error:Could not get unknown property 'prepareReleaseDependencies' for project ':someLib' of type org.gradle.api.Project. HOT 9
- why it accurs error ? HOT 5
- how to embedded .aar file HOT 4
- The fixed version !!!
- task generateRJava generates attr that can't find HOT 1
- Error:Could not get unknown property 'generateReleaseAssets' for project ':app' of type org.gradle.api.Project. HOT 2
- Could not find sdklib.jar (com.android.tools:sdklib:25.3.2).
- ERROR: Cannot choose between the following variants of project :ble-interface: HOT 2
- Maybe here is a good choice of fat-aar, supoort android gradle plugin 3.0.0-3.4.2 and gradle 4.6-5.1.1.
- [fix] fat-aar getMergedInputResourceSets
- 谁有gradle 3.6.1解决方案 HOT 1
- example 不能正常编译
- Failed resolution of: Landroidx/lifecycle/DefaultLifecycleObserver
- How to modify the exported file name?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-fat-aar.