question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Litho loses access to Yoga Sources for version 0.4.0

See original GitHub issue

Version

Add the version of the litho packages you use. You can paste the dependency section of the gradle file if you have one.

compile 'com.facebook.litho:litho-core:0.4.1'
compile 'com.facebook.litho:litho-widget:0.4.0'
provided 'com.facebook.litho:litho-annotations:0.4.0'
annotationProcessor 'com.facebook.litho:litho-processor:0.4.0'
    // SoLoader
compile 'com.facebook.soloader:soloader:0.2.0'
    // Optional
    // For debugging
debugCompile 'com.facebook.litho:litho-stetho:0.4.0'
    // For integration with Fresco
compile 'com.facebook.litho:litho-fresco:0.4.0'

After updating to litho package versions 0.4.0, it cal no longer find any Yoga source files that may be loaded by SoLoader. On going back to version 0.3.1, it successfully built and deployed.

Issues and Steps to Reproduce

Upgraded Litho libraries to version 0.4.0

Expected Behavior

When any Yoga reference is made in a Spec file, it cannot be found with version 0.4.0

Link to Code

        Column.create(c)
                    .widthPercent(70)
                    .marginDip(YogaEdge.ALL, 8)
                    .alignSelf(YogaAlign.BASELINE)
                    .heightPercent(100)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
passycommented, Jul 12, 2017

I found the cause for this: The plugin we use for generating the POMs based on our Android dependency declarations hadn’t been updated for the new dependency formats yet: https://github.com/dcendents/android-maven-gradle-plugin/issues/61

It looks like the version on master already supports it, so I will try to publish a new release with that yesterday and, if that doesn’t work, revert back to the old-style declarations until we have a new version.

1reaction
simpletoncommented, Jul 12, 2017

@passy Can’t import yoga packages such as com.facebook.yoga.YogaEdge which is using in some layout api(eg. paddingDip(YogaEdge edge, @Dimension(unit = DP) int padding);)

Should I add yoga dependence manually in build.gradle?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Open Source Used In FindIT Network Manager 2.1.0.x - Cisco
This document contains licenses and notices for open source software used in this product. With respect to the free/open source software ...
Read more >
https://docs.cloudera.com/documentation/other/shar...
1.27.0, Java Native Access (JNA) 5.2.0, Java Native Access (JNA) 5.3.1, ... XMLSecTool 2.0.0, xmltool 3.3, Yoga Core 1.1.1) Apache License Version 2.0, ......
Read more >
(PDF) Super-resolution wide-field optical microscopy by use of ...
Here, we use a combination of azimuthal- and polar-angle beam scanning, dark-field scatter imaging, and atomic force microscopy to identify the sources of ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found