Comments (8)
from android-fat-aar.
Hi,
I'll try explain, in the truth just now I understand my real problem.
I'm using your gradle script since begin of last year, but I stayed 15 days without to work on my Android project. Last week I formatted my ubuntu system, therefore I installed all newest versions of applications to work, such as Android Studio 2.2 and JDK 1.8. Today when I ran assembleReselease, I note that your script is running the proguard process again (unduly?).
My minifyEnabled is setted to false, but still running proguard process when I call assembleRelease. And this didn't happened before.
I have multiples projects that are joined by com.github.dcendents.android-maven plugin, in this projects really uses minifyEnabled setted as true, but on main project that generate final lib don't.
The warning generated:
Warning: com.package.Foo: can't find referenced class javax.persistence.Table
Warning: com.package.Bar: can't find referenced class org.apache.commons.codec.binary.Hex
After that I wrote text above, did some tests and now I can run assembleRelease with success by changing the gradle file to use:
'com.android.tools.build:gradle:2.1.3' (was 2.2.0)
'com.github.dcendents:android-maven-gradle-plugin:1.4.1' (was 1.5.0)
And:
apply from: 'https://raw.githubusercontent.com/adwiv/android-fat-aar/4308e779cd12b1398a67040d6ec6447c701bd0e2/fat-aar.gradle' (was master)
Do you have idea of the cause?
from android-fat-aar.
The older script did not use an internal proguard, we simply remapped the R classes of embedded projects to point to the library R file.
The 2.2 gradle created an issue by stripping any class named R and inner classes from the generated aar archive which the internal proguard tries to fix. The proguard wants to resolve all classes although it doesn't use them actually. Hence the error.
The javax.persistence.Table is not a part of android java library, hence the warning. From what I understand, this class belongs to java enterprise edition and one of the included jars has a reference to it. Same way, the script is not able to find the commons-codec library in the dependencies. How are you including it?
If you can share the names or dependencies of your embedded projects, I would try to replicate the issue.
from android-fat-aar.
Hi, Added the option to specify your own dontwarn options in file named fataar-rules.pro which is created automatically first time you run the script. Please check if it works as required.
from android-fat-aar.
fataar-rules.pro is like a common proguard configuration file? Because some java classes were obfuscated together with proguard process.
from android-fat-aar.
Yes.. it's included as a config file..
The obfuscation should not happen since we have the dontobsfucate option.
Can you check the generated config file to see what configuration is
applied. It's in the same location as mapping file.
On 07-Oct-2016 8:07 PM, "williamlopes-dev" [email protected] wrote:
fataar-rules.pro is like a common proguard configuration file? Because
some java classes were obfuscated together with proguard process.—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#33 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKfnZ8ESUqupzFLGL4_rDAkx02TrMDB2ks5qxlkYgaJpZM4KLWNo
.
from android-fat-aar.
When I tested my integration class has been obfuscated. I remember of add keep 'class foo.Bar' command to work correctly. I can compile without 'keep' command, but I can't use my library in that way.
Next week I must be able to test, after that, I'll back and tell if worked.
By the way, thank you so much my brother!!
from android-fat-aar.
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.