React-native-svg: Problem with compilation

Created on 15 Aug 2019  路  1Comment  路  Source: react-native-svg/react-native-svg

Hi, im using react native 0.59.8 and when try to run I get the following error

SpanView.java:1156: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
^
symbol: variable P
location: class VERSION_CODES
/Users/sensordata/Proyectos/sensordata-app-android/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/TSpanView.java:1157: error: no suitable method found for create(Typeface,int,boolean)
typeface = Typeface.create(typeface, weight, isItalic);
^
method Typeface.create(String,int) is not applicable
(actual and formal argument lists differ in length)
method Typeface.create(Typeface,int) is not applicable
(actual and formal argument lists differ in length)
2 errors

FAILURE: Build failed with an exception.

reproduction needed

Most helpful comment

Can you try setting compileSdkVersion = 28

>All comments

Can you try setting compileSdkVersion = 28

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dineshchitta picture Dineshchitta  路  3Comments

brunolemos picture brunolemos  路  3Comments

AdeilsonSuperlogica picture AdeilsonSuperlogica  路  3Comments

alexandergunnarson picture alexandergunnarson  路  4Comments

SteveIb picture SteveIb  路  3Comments