Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.android.build.api.transform.TransformException #3

Closed
PGMacDesign opened this issue Aug 15, 2018 · 2 comments
Closed

com.android.build.api.transform.TransformException #3

PGMacDesign opened this issue Aug 15, 2018 · 2 comments
Assignees
Labels

Comments

@PGMacDesign
Copy link
Owner

PGMacDesign commented Aug 15, 2018

Receiving this issue when compiling this into a different project:

Note: Recompile with -Xlint:unchecked for details.
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list.

* 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 https://help.gradle.org

BUILD FAILED in 49s

Seems to be related to having this line in the build.gradle file:

api 'com.google.android.gms:play-services-maps:15.0.1'

Will look into it further

@PGMacDesign PGMacDesign self-assigned this Aug 15, 2018
@PGMacDesign
Copy link
Owner Author

It seems that this is related instead to someone using this library with a different version of Realm as it conflicts with the DatabaseUtilities class and a few others. Will work on a fix soon

@PGMacDesign
Copy link
Owner Author

PGMacDesign commented Aug 16, 2018

Issue resolved in Build 0.0.66

Core problem was related to this issue in Realm and was solved by following the logic displayed here.

The solution was to declare a custom Realm Module

@RealmModule(library = true, allClasses = true)
    public static class PGMacTipsModule {}

If you are using a version below 0.0.66, you can declare your own custom module (exclude the library = true param) and rename it whatever you want. Then, whenever you build your RealmConfiguration, use your custom module there:

 builder.modules(new YourCustomModuleHere());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant