I'm facing this issue when using dexguard
> Task :app:dexguardStaging FAILED
The TaskInternal.execute() method has been deprecated and is scheduled to be removed in Gradle 5.0. There are better ways to re-use task logic, see https://docs.gradle.org/4.3/userguide/custom_tasks.html#sec:reusing_task_logic.
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:dexguardStaging'.
java.io.IOException: The same input jar [/Users/radityagumay/Library/Android/sdk/platforms/android-25/android.jar] is specified twice.
Can anyone help?
UPDATE i've fix this issue by revert to distribution gradle 3.5 previously i using 4.3,
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip
and downgrade all build from 3.0.0 to 2.3.3, remove maven google.com
classpath 'com.android.tools.build:gradle:2.3.3'
This issue happened, when i using Android Studio 3 with build gradle 3.0.0 or 3.0.1, and dexguard (7.3.11) also use (8.0.18) enable.
this maybe mismatch version latest gradle with version of dexguard.
Thanks