Ошибка импорта com.android.build.OutputFile в реакции-nativeAndroid

Форум для тех, кто программирует под Android
Гость
Ошибка импорта com.android.build.OutputFile в реакции-native

Сообщение Гость »


First I run a new project

Код: Выделить всё

react-native init AwesomeProject --version 0.58.6 
(0.59.1 has a bug, but I test this problrm with it)

with

Код: Выделить всё

react-native run-android
I can run it.

In android studio when I sync it, I get an error:

app/build.gradle:

Код: Выделить всё

import com.android.build.OutputFile 
Error: Cannot resolve symbol 'build'

I use these versions:

Код: Выделить всё

ext {     buildToolsVersion = "28.0.3"     minSdkVersion = 16     compileSdkVersion = 28     targetSdkVersion = 27     supportLibVersion = "28.0.0" } repositories {     google()     jcenter() } dependencies {     classpath 'com.android.tools.build:gradle:3.2.1'     // NOTE: Do not place your application dependencies here; they belong     // in the individual module build.gradle files } 


Источник: https://stackoverflow.com/questions/553 ... act-native

Вернуться в «Android»