Giter Club home page Giter Club logo

Comments (18)

adwiv avatar adwiv commented on August 15, 2024

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.

DoDoENT avatar DoDoENT commented on August 15, 2024

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.

adwiv avatar adwiv commented on August 15, 2024

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.

adwiv avatar adwiv commented on August 15, 2024

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.

adwiv avatar adwiv commented on August 15, 2024

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.

DoDoENT avatar DoDoENT commented on August 15, 2024

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.

DoDoENT avatar DoDoENT commented on August 15, 2024

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.

mic331 avatar mic331 commented on August 15, 2024

@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.

maxxx avatar maxxx commented on August 15, 2024

confirm this bug with "com.android.tools.build:gradle:2.1.2" and gradle 2.14. #19 related

from android-fat-aar.

isometriq avatar isometriq commented on August 15, 2024

Same here

from android-fat-aar.

Trinea avatar Trinea commented on August 15, 2024

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.

adwiv avatar adwiv commented on August 15, 2024

Fixed in latest version tested with android gradle 2.2.0.
Kindly test and open new issue for any problems.

from android-fat-aar.

isometriq avatar isometriq commented on August 15, 2024

Many thanks! will report when testing it

from android-fat-aar.

LilianaB avatar LilianaB commented on August 15, 2024

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.

screen shot 2016-10-14 at 11 01 16

Any idea of what can be happening?
Thanks in advance.

from android-fat-aar.

adwiv avatar adwiv commented on August 15, 2024

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.

LilianaB avatar LilianaB commented on August 15, 2024

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.

isometriq avatar isometriq commented on August 15, 2024

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.

maxim-petlyuk avatar maxim-petlyuk commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.