facebook / facebook/litho

Failed to compile with React Native

Open
#565 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
7.8k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

- [x] I have searched [existing issues](https://github.com/facebook/litho/issues) and this is not a duplicate

## Version
React Native: 0.60.3
Litho: 0.29.0

```
configurations.all {
exclude group: 'com.facebook.yoga', module: 'yoga'
}

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.0.0'

implementation "com.facebook.react:react-native:+" // From node_modules

// Litho
implementation 'com.facebook.litho:litho-core:0.29.0'
implementation 'com.facebook.litho:litho-widget:0.29.0'
annotationProcessor 'com.facebook.litho:litho-processor:0.29.0'

// SoLoader
implementation 'com.facebook.soloader:soloader:0.5.1'
}
```

## Issues and Steps to Reproduce
It prompts below error message that complains conflicts on DoNotStrip
```
AGPBI: {"kind":"error","text":"Program type already present: com.facebook.proguard.annotations.DoNotStrip","sources":[{}],"tool":"D8"}

FAILURE: Build failed with an exception.
```

![Screen Shot 2019-07-17 at 11 50 15](https://user-images.githubusercontent.com/1072850/61345806-223e3980-a889-11e9-9bd8-fff909f64391.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.