Unable to solve syymbol 'build' on line import com.android.build.OutputFile in app / build.gradle

So, I just created a reciprocal native project using the command

react-native init "project-name"

I went to the build.gradle build level to enable firebase, and I had an error saying that it could not resolve the “android” character in the line

import com.android.build.OutputFile

However, he found that “Android infrastructure is detected in the project, click to configure”, so I did it, but then he said that he couldn’t allow the creation of a character in one line, I have no idea why he says it like I did the project is the same as before, and never had this problem, any ideas?

+7
source share
4

, Build.VERSION, com.android.build.OutputFile. , , ALT + Enter, .

+3

, classpath 'com.android.tools.build:gradle:2.2.0' dependencies build.gradle .

0

classpath 'com.android.tools.build:gradle:3.4.1' 3.4.2 build.gradle

classpath 'com.android.tools.build:gradle:3.4.1'

3.4.2, .

0

emmmm ... This problem happened to me just now. I tried many times and finally found a change in the contents of the storeFile configuration file, the file 'build.gradle' can work to the absolute path of the keystore file (android).

-1
source

Source: https://habr.com/ru/post/1656642/


All Articles