Home > Mobile >  AndroidStudio generated aar not packaged into the package depends on local third-party jar package
AndroidStudio generated aar not packaged into the package depends on local third-party jar package

Time:10-07

I now use AndroidStudio generated aar package, the default local dependent jar package also in, is there any way to compile only, but not the local jars packaged into, because my other project use this aar package, can be repeated to introduce package mistake, but I don't want to external processing project, have a great god help me solve

CodePudding user response:

Error: Execution failed for task ': app: transformClassesWithJarMergingForDebug'.
Com. Android. Build. API. The transform. TransformException: Java. Util. Zip. ZipException: duplicate entry: rx/Notification $Kind. Class

CodePudding user response:

With the solution

CodePudding user response:

Compiled not only provided packaging used for relying on
Provided files (' libs/XXX. Jar)

CodePudding user response:

Put the referenced jars on another moudle, and then to aar moudle to reference the moudle

CodePudding user response:

Don't don't put it on the libs underneath buildgradle quoted below I met opposite now I wanted to beat buildgradle under remote references to aar in don't want to use the class library

CodePudding user response:

refer to fifth floor ouch west Chen reply:
put the referenced jars on another moudle, and then to aar moudle to reference the moudle can
thanks, such processing confirmation won't put the jar in the lib package with aar,
  • Related