Member-only story

React Native — Resource linking fails on lStar — Solved

Android builds fails in the CI environment (and locally) without any changes.

The error:

Execution failed for task ':app:processDevelopmentDebugResources'.

> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
.../app/build/intermediates/incremental/mergeDevelopmentDebugResources/merged.dir/values/values.xml:2682: AAPT: error: resource android:attr/lStar not found.

The fix:

The problem is @react-native-community/netinfo. Try to update the package using

yarn add @react-native-community/netinfo

or

npm update @react-native-community/netinfo

There isn’t any need to change anything over your Gradle or Android files as those might mess things up even more.

--

--

Flutter Developer
Flutter Developer

Written by Flutter Developer

Flutter and Native Android developer

Responses (1)