Closed natantmartins closed 5 years ago
edit build.gradle of react-native-wheel-picker manually in your node_modules folder like this:
compileSdkVersion 27 buildToolsVersion "27.0.3"
edit build.gradle of react-native-wheel-picker manually in your node_modules folder like this: compileSdkVersion 27 buildToolsVersion "27.0.3"
It seems that it solved the problem partially but still giving build failed with a new error
now is that:
> Task :react-native-wheel-picker:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-wheel-picker:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
G:\ProjetoAndroid\ControlePoupanca\node_modules\react-native-wheel-picker\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
G:\ProjetoAndroid\ControlePoupanca\node_modules\react-native-wheel-picker\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
G:\ProjetoAndroid\ControlePoupanca\node_modules\react-native-wheel-picker\android\build\intermediates\res\merged\release\values\values.xml:2776: error: resource android:attr/fontVariationSettings not found.
G:\ProjetoAndroid\ControlePoupanca\node_modules\react-native-wheel-picker\android\build\intermediates\res\merged\release\values\values.xml:2777: error: resource android:attr/ttcIndex not found.
error: failed linking references.
* 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 1m 25s
78 actionable tasks: 3 executed, 75 up-to-date
I don't know why this is happening
I found the solution :)
Set the version of the compilation by modifying, the build.gradle file in ...\node_modules\react-native-wheel-picker\android\build.gradle with the same configuration of your project folder in android/build.gradle
I hope this helps you.
I found the solution :) Set the version of the compilation by modifying, the build.gradle file in ...\node_modules\react-native-wheel-picker\android\build.gradle with the same configuration of your project folder in android/build.gradle I hope this helps you.
It's solved!! that was the problem! Your solution solved my problem and is now build successful. Thank you very much
i run:
then i got a "Build Failed" with "Android resource linking failed":
I'm using Windows 10 and developing for android. The app run fine in a simulator. Anyone can help me?