Build get failed while migrating android project to AndroidX












0















My project is using lombok library. I am trying to migrate my project to AndroidX. But its build failed with below exception.



Could not resolve all files for configuration ':app:debugCompileClasspath'.
Failed to transform file 'lombok-1.18.4.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
Failed to transform '/Users/xxx/.gradle/caches/modules-2/files-2.1/org.projectlombok/lombok/1.18.4/7103ab519b1cdbb0642ad4eaf1db209d905d0f96/lombok-1.18.4.jar' using Jetifier. Reason: The type does not support '.' as package separator!. (Run with --stacktrace for more details.) To disable Jetifier, set android.enableJetifier=false in your gradle.properties file.

* Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugCompileClasspath'.
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.rethrowFailure(DefaultConfiguration.java:1013)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.access$1700(DefaultConfiguration.java:123)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:987)
at org.gradle.api.internal.file.AbstractFileCollection.iterator(AbstractFileCollection.java:76)
Caused by: org.gradle.api.artifacts.transform.ArtifactTransformException: Failed to transform file 'lombok-1.18.4.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
at org.gradle.api.internal.artifacts.transform.UserCodeBackedTransformer.transform(UserCodeBackedTransformer.java:89)
at org.gradle.api.internal.artifacts.transform.ChainedTransformer.transform(ChainedTransformer.java:36)
at org.gradle.api.internal.artifacts.transform.TransformArtifactOperation.run(TransformArtifactOperation.java:41)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:317)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:309)
at org.gradle.api.internal.artifacts.transform.UserCodeBackedTransformer.transform(UserCodeBackedTransformer.java:87)
... 17 more
Caused by: java.lang.IllegalArgumentException: The type does not support '.' as package separator!
at com.android.tools.build.jetifier.core.type.JavaType.<init>(JavaType.kt:28)
at com.android.tools.build.jetifier.processor.transform.bytecode.asm.CustomRemapper.map(CustomRemapper.kt:29)
at org.objectweb.asm.commons.Remapper.mapPackageName(Remapper.java:235)
at org.objectweb.asm.commons.ModuleRemapper.visitExport(ModuleRemapper.java:78)
at org.objectweb.asm.ClassReader.readModule(ClassReader.java:774)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:632)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:500)
at com.android.tools.build.jetifier.processor.transform.bytecode.ByteCodeTransformer.runTransform(ByteCodeTransformer.kt:39)
at com.android.tools.build.jetifier.processor.Processor.visit(Processor.kt:328)
at com.android.tools.build.jetifier.processor.archive.ArchiveFile.accept(ArchiveFile.kt:41)
at com.android.tools.build.jetifier.processor.Processor.visit(Processor.kt:316)
at com.android.tools.build.jetifier.processor.archive.Archive.accept(Archive.kt:66)
at com.android.tools.build.jetifier.processor.Processor.transformLibrary(Processor.kt:312)
at com.android.tools.build.jetifier.processor.Processor.transform(Processor.kt:175)
at com.android.build.gradle.internal.dependency.JetifyTransform.transform(JetifyTransform.kt:199)
... 39 more


Here is my gradle.properties file



org.gradle.jvmargs=-Xmx2560M
pgiMixpanelToken="null"
pgiProdApiKey="null"
android.databinding.enableV2=true
android.useAndroidX=true
android.enableJetifier=true


Please help me to resolve this.










share|improve this question

























  • Hey, can you please show your gradle.properties file?

    – nimi0112
    Nov 27 '18 at 4:52











  • @nimi0112 Thanks for the support. I have updated my question with gradle.properties file. Note: I have migrated the project using android studio -> Refactor-> Migrate to AndroidX

    – Sridhar Nalam
    Nov 27 '18 at 6:15













  • try android.enableJetifier false as mentioned in your error log.

    – nimi0112
    Nov 27 '18 at 6:32
















0















My project is using lombok library. I am trying to migrate my project to AndroidX. But its build failed with below exception.



Could not resolve all files for configuration ':app:debugCompileClasspath'.
Failed to transform file 'lombok-1.18.4.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
Failed to transform '/Users/xxx/.gradle/caches/modules-2/files-2.1/org.projectlombok/lombok/1.18.4/7103ab519b1cdbb0642ad4eaf1db209d905d0f96/lombok-1.18.4.jar' using Jetifier. Reason: The type does not support '.' as package separator!. (Run with --stacktrace for more details.) To disable Jetifier, set android.enableJetifier=false in your gradle.properties file.

* Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugCompileClasspath'.
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.rethrowFailure(DefaultConfiguration.java:1013)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.access$1700(DefaultConfiguration.java:123)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:987)
at org.gradle.api.internal.file.AbstractFileCollection.iterator(AbstractFileCollection.java:76)
Caused by: org.gradle.api.artifacts.transform.ArtifactTransformException: Failed to transform file 'lombok-1.18.4.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
at org.gradle.api.internal.artifacts.transform.UserCodeBackedTransformer.transform(UserCodeBackedTransformer.java:89)
at org.gradle.api.internal.artifacts.transform.ChainedTransformer.transform(ChainedTransformer.java:36)
at org.gradle.api.internal.artifacts.transform.TransformArtifactOperation.run(TransformArtifactOperation.java:41)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:317)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:309)
at org.gradle.api.internal.artifacts.transform.UserCodeBackedTransformer.transform(UserCodeBackedTransformer.java:87)
... 17 more
Caused by: java.lang.IllegalArgumentException: The type does not support '.' as package separator!
at com.android.tools.build.jetifier.core.type.JavaType.<init>(JavaType.kt:28)
at com.android.tools.build.jetifier.processor.transform.bytecode.asm.CustomRemapper.map(CustomRemapper.kt:29)
at org.objectweb.asm.commons.Remapper.mapPackageName(Remapper.java:235)
at org.objectweb.asm.commons.ModuleRemapper.visitExport(ModuleRemapper.java:78)
at org.objectweb.asm.ClassReader.readModule(ClassReader.java:774)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:632)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:500)
at com.android.tools.build.jetifier.processor.transform.bytecode.ByteCodeTransformer.runTransform(ByteCodeTransformer.kt:39)
at com.android.tools.build.jetifier.processor.Processor.visit(Processor.kt:328)
at com.android.tools.build.jetifier.processor.archive.ArchiveFile.accept(ArchiveFile.kt:41)
at com.android.tools.build.jetifier.processor.Processor.visit(Processor.kt:316)
at com.android.tools.build.jetifier.processor.archive.Archive.accept(Archive.kt:66)
at com.android.tools.build.jetifier.processor.Processor.transformLibrary(Processor.kt:312)
at com.android.tools.build.jetifier.processor.Processor.transform(Processor.kt:175)
at com.android.build.gradle.internal.dependency.JetifyTransform.transform(JetifyTransform.kt:199)
... 39 more


Here is my gradle.properties file



org.gradle.jvmargs=-Xmx2560M
pgiMixpanelToken="null"
pgiProdApiKey="null"
android.databinding.enableV2=true
android.useAndroidX=true
android.enableJetifier=true


Please help me to resolve this.










share|improve this question

























  • Hey, can you please show your gradle.properties file?

    – nimi0112
    Nov 27 '18 at 4:52











  • @nimi0112 Thanks for the support. I have updated my question with gradle.properties file. Note: I have migrated the project using android studio -> Refactor-> Migrate to AndroidX

    – Sridhar Nalam
    Nov 27 '18 at 6:15













  • try android.enableJetifier false as mentioned in your error log.

    – nimi0112
    Nov 27 '18 at 6:32














0












0








0








My project is using lombok library. I am trying to migrate my project to AndroidX. But its build failed with below exception.



Could not resolve all files for configuration ':app:debugCompileClasspath'.
Failed to transform file 'lombok-1.18.4.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
Failed to transform '/Users/xxx/.gradle/caches/modules-2/files-2.1/org.projectlombok/lombok/1.18.4/7103ab519b1cdbb0642ad4eaf1db209d905d0f96/lombok-1.18.4.jar' using Jetifier. Reason: The type does not support '.' as package separator!. (Run with --stacktrace for more details.) To disable Jetifier, set android.enableJetifier=false in your gradle.properties file.

* Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugCompileClasspath'.
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.rethrowFailure(DefaultConfiguration.java:1013)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.access$1700(DefaultConfiguration.java:123)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:987)
at org.gradle.api.internal.file.AbstractFileCollection.iterator(AbstractFileCollection.java:76)
Caused by: org.gradle.api.artifacts.transform.ArtifactTransformException: Failed to transform file 'lombok-1.18.4.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
at org.gradle.api.internal.artifacts.transform.UserCodeBackedTransformer.transform(UserCodeBackedTransformer.java:89)
at org.gradle.api.internal.artifacts.transform.ChainedTransformer.transform(ChainedTransformer.java:36)
at org.gradle.api.internal.artifacts.transform.TransformArtifactOperation.run(TransformArtifactOperation.java:41)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:317)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:309)
at org.gradle.api.internal.artifacts.transform.UserCodeBackedTransformer.transform(UserCodeBackedTransformer.java:87)
... 17 more
Caused by: java.lang.IllegalArgumentException: The type does not support '.' as package separator!
at com.android.tools.build.jetifier.core.type.JavaType.<init>(JavaType.kt:28)
at com.android.tools.build.jetifier.processor.transform.bytecode.asm.CustomRemapper.map(CustomRemapper.kt:29)
at org.objectweb.asm.commons.Remapper.mapPackageName(Remapper.java:235)
at org.objectweb.asm.commons.ModuleRemapper.visitExport(ModuleRemapper.java:78)
at org.objectweb.asm.ClassReader.readModule(ClassReader.java:774)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:632)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:500)
at com.android.tools.build.jetifier.processor.transform.bytecode.ByteCodeTransformer.runTransform(ByteCodeTransformer.kt:39)
at com.android.tools.build.jetifier.processor.Processor.visit(Processor.kt:328)
at com.android.tools.build.jetifier.processor.archive.ArchiveFile.accept(ArchiveFile.kt:41)
at com.android.tools.build.jetifier.processor.Processor.visit(Processor.kt:316)
at com.android.tools.build.jetifier.processor.archive.Archive.accept(Archive.kt:66)
at com.android.tools.build.jetifier.processor.Processor.transformLibrary(Processor.kt:312)
at com.android.tools.build.jetifier.processor.Processor.transform(Processor.kt:175)
at com.android.build.gradle.internal.dependency.JetifyTransform.transform(JetifyTransform.kt:199)
... 39 more


Here is my gradle.properties file



org.gradle.jvmargs=-Xmx2560M
pgiMixpanelToken="null"
pgiProdApiKey="null"
android.databinding.enableV2=true
android.useAndroidX=true
android.enableJetifier=true


Please help me to resolve this.










share|improve this question
















My project is using lombok library. I am trying to migrate my project to AndroidX. But its build failed with below exception.



Could not resolve all files for configuration ':app:debugCompileClasspath'.
Failed to transform file 'lombok-1.18.4.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
Failed to transform '/Users/xxx/.gradle/caches/modules-2/files-2.1/org.projectlombok/lombok/1.18.4/7103ab519b1cdbb0642ad4eaf1db209d905d0f96/lombok-1.18.4.jar' using Jetifier. Reason: The type does not support '.' as package separator!. (Run with --stacktrace for more details.) To disable Jetifier, set android.enableJetifier=false in your gradle.properties file.

* Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugCompileClasspath'.
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.rethrowFailure(DefaultConfiguration.java:1013)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.access$1700(DefaultConfiguration.java:123)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:987)
at org.gradle.api.internal.file.AbstractFileCollection.iterator(AbstractFileCollection.java:76)
Caused by: org.gradle.api.artifacts.transform.ArtifactTransformException: Failed to transform file 'lombok-1.18.4.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
at org.gradle.api.internal.artifacts.transform.UserCodeBackedTransformer.transform(UserCodeBackedTransformer.java:89)
at org.gradle.api.internal.artifacts.transform.ChainedTransformer.transform(ChainedTransformer.java:36)
at org.gradle.api.internal.artifacts.transform.TransformArtifactOperation.run(TransformArtifactOperation.java:41)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:317)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:309)
at org.gradle.api.internal.artifacts.transform.UserCodeBackedTransformer.transform(UserCodeBackedTransformer.java:87)
... 17 more
Caused by: java.lang.IllegalArgumentException: The type does not support '.' as package separator!
at com.android.tools.build.jetifier.core.type.JavaType.<init>(JavaType.kt:28)
at com.android.tools.build.jetifier.processor.transform.bytecode.asm.CustomRemapper.map(CustomRemapper.kt:29)
at org.objectweb.asm.commons.Remapper.mapPackageName(Remapper.java:235)
at org.objectweb.asm.commons.ModuleRemapper.visitExport(ModuleRemapper.java:78)
at org.objectweb.asm.ClassReader.readModule(ClassReader.java:774)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:632)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:500)
at com.android.tools.build.jetifier.processor.transform.bytecode.ByteCodeTransformer.runTransform(ByteCodeTransformer.kt:39)
at com.android.tools.build.jetifier.processor.Processor.visit(Processor.kt:328)
at com.android.tools.build.jetifier.processor.archive.ArchiveFile.accept(ArchiveFile.kt:41)
at com.android.tools.build.jetifier.processor.Processor.visit(Processor.kt:316)
at com.android.tools.build.jetifier.processor.archive.Archive.accept(Archive.kt:66)
at com.android.tools.build.jetifier.processor.Processor.transformLibrary(Processor.kt:312)
at com.android.tools.build.jetifier.processor.Processor.transform(Processor.kt:175)
at com.android.build.gradle.internal.dependency.JetifyTransform.transform(JetifyTransform.kt:199)
... 39 more


Here is my gradle.properties file



org.gradle.jvmargs=-Xmx2560M
pgiMixpanelToken="null"
pgiProdApiKey="null"
android.databinding.enableV2=true
android.useAndroidX=true
android.enableJetifier=true


Please help me to resolve this.







android gradle lombok androidx






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 '18 at 6:14







Sridhar Nalam

















asked Nov 26 '18 at 13:13









Sridhar NalamSridhar Nalam

35057




35057













  • Hey, can you please show your gradle.properties file?

    – nimi0112
    Nov 27 '18 at 4:52











  • @nimi0112 Thanks for the support. I have updated my question with gradle.properties file. Note: I have migrated the project using android studio -> Refactor-> Migrate to AndroidX

    – Sridhar Nalam
    Nov 27 '18 at 6:15













  • try android.enableJetifier false as mentioned in your error log.

    – nimi0112
    Nov 27 '18 at 6:32



















  • Hey, can you please show your gradle.properties file?

    – nimi0112
    Nov 27 '18 at 4:52











  • @nimi0112 Thanks for the support. I have updated my question with gradle.properties file. Note: I have migrated the project using android studio -> Refactor-> Migrate to AndroidX

    – Sridhar Nalam
    Nov 27 '18 at 6:15













  • try android.enableJetifier false as mentioned in your error log.

    – nimi0112
    Nov 27 '18 at 6:32

















Hey, can you please show your gradle.properties file?

– nimi0112
Nov 27 '18 at 4:52





Hey, can you please show your gradle.properties file?

– nimi0112
Nov 27 '18 at 4:52













@nimi0112 Thanks for the support. I have updated my question with gradle.properties file. Note: I have migrated the project using android studio -> Refactor-> Migrate to AndroidX

– Sridhar Nalam
Nov 27 '18 at 6:15







@nimi0112 Thanks for the support. I have updated my question with gradle.properties file. Note: I have migrated the project using android studio -> Refactor-> Migrate to AndroidX

– Sridhar Nalam
Nov 27 '18 at 6:15















try android.enableJetifier false as mentioned in your error log.

– nimi0112
Nov 27 '18 at 6:32





try android.enableJetifier false as mentioned in your error log.

– nimi0112
Nov 27 '18 at 6:32












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53481901%2fbuild-get-failed-while-migrating-android-project-to-androidx%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53481901%2fbuild-get-failed-while-migrating-android-project-to-androidx%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin