Status Update
Comments
lb...@gmail.com <lb...@gmail.com> #2
Workaround:
Use this:
implementation 'androidx.core:core-ktx:1.0.0-rc02'
instead of this generated line :
implementation 'androidx.core:core-ktx:0.3'
Use this:
implementation 'androidx.core:core-ktx:1.0.0-rc02'
instead of this generated line :
implementation 'androidx.core:core-ktx:0.3'
uc...@google.com <uc...@google.com>
je...@google.com <je...@google.com>
[Deleted User] <[Deleted User]> #4
Issue still present in Android Studio 3.3 Canary 11 using latest gradle plugin
classpath 'com.android.tools.build:gradle:3.3.0-alpha11'
In freshly created wizard project with:
implementation 'androidx.core:core-ktx:0.3'
get error:
> Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
AGPBI: {"kind":"error","text":"Program type already present: androidx.core.graphics.PathSegment","sources":[{}],"tool":"D8"}
Reverting to:
implementation 'androidx.core:core-ktx:1.0.0-rc02'
project builds successfully
classpath 'com.android.tools.build:gradle:3.3.0-alpha11'
In freshly created wizard project with:
implementation 'androidx.core:core-ktx:0.3'
get error:
> Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
AGPBI: {"kind":"error","text":"Program type already present: androidx.core.graphics.PathSegment","sources":[{}],"tool":"D8"}
Reverting to:
implementation 'androidx.core:core-ktx:1.0.0-rc02'
project builds successfully
hu...@google.com <hu...@google.com> #5
As mentioned at Issue 111260482 and comment #2 above, 'androidx.core:core-ktx:0.3' will not work. You will need 'androidx.core:core-ktx:1.0.0-rc02' or above.
If the IDE is adding 'androidx.core:core-ktx:0.3' automatically, then it is the IDE's bug. If the IDE adds 'androidx.core:core-ktx:1.0.0-rc02' correctly but you change it to 'androidx.core:core-ktx:0.3', then it will not work.
If the IDE is adding 'androidx.core:core-ktx:0.3' automatically, then it is the IDE's bug. If the IDE adds 'androidx.core:core-ktx:1.0.0-rc02' correctly but you change it to 'androidx.core:core-ktx:0.3', then it will not work.
lb...@gmail.com <lb...@gmail.com> #6
@5 The thing is that this is the generated line, which is by the IDE, just by creating a new project.
That's why it's a bug.
Please fix this, as well as this new issue:
https://issuetracker.google.com/issues/116148147
That's why it's a bug.
Please fix this, as well as this new issue:
hu...@google.com <hu...@google.com> #7
I just tried 3.3 canary 11 and don't see this issue anymore. Let me know if you still have issues with canary 11.
I've commented on the other bug, thanks for reporting!
I've commented on the other bug, thanks for reporting!
Description
Version of Gradle Plugin:
Version of Gradle:
Version of Java:
OS:
Android Studio 3.3 Canary 8
Build #AI-182.3911.36.33.4978721, built on August 27, 2018
JRE: 1.8.0_152-release-1136-b06 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Steps to Reproduce:
1. Create and run a new Android project using default values in the wizard.
The bug is that you get this error:
> Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
AGPBI: {"kind":"error","text":"Program type already present: androidx.core.graphics.PathSegment","sources":[{}],"tool":"D8"}
> Task :app:buildInfoGeneratorDebug
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Learn how to resolve the issue at
Program type already present: androidx.core.graphics.PathSegment
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at
BUILD FAILED in 1m 24s
38 actionable tasks: 28 executed, 10 up-to-date
Attached video to show issue, and IDE log file.