Android importing other people’s project configuration problem – the project can’t run

How to create a new Android project? https://www.cnblogs.com/xqz0618/p/first_ app.html

Import imports other projects. After loading, if your other projects are displayed in the Android view but look like the project view, the project may not be consistent with your computer project configuration. The IDE (compiler) will prompt you to download some files, such as targetsdkversion. If the project still cannot run after operating according to the as prompt.

General summary: replacement of three documents

First, switch your application to the Android view, and switch other people's projects to the project view

① the first file, build.gradle (Project: myapplication), copies the contents of the file to the project view of another project, build.gradle at the same level as the app folder (you can open it first. The structure should be the same, that is, the version of gradle is different)

② the second file, build.gradle (module: APP)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>