简体   繁体   English

导入Android Studio项目

[英]import a Android Studio Project

I'm new to the android programming area and would like to import a chat project from GitHub. 我是android编程领域的新手,想从GitHub导入聊天项目。 This project uses FIREBASE. 该项目使用FIREBASE。 But, I can't run, it makes a lot of mistakes. 但是,我不能跑步,它会犯很多错误。

"Compilation is not supported for following modules: app. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project" “以下模块不支持编译:应用程序。不幸的是,您不能在一个项目中包含非Gradle Java模块和Android-Gradle模块”

"the package name is already used in firebase" // I tried to change the package name.. but doesn't work. “程序包名称已在firebase中使用” //我试图更改程序包名称..但不起作用。

this is the project https://github.com/hieuapp/android-firebase-chat Thanks for your attention 这是项目https://github.com/hieuapp/android-firebase-chat感谢您的关注

Probably the google-services.json file from firebase, is having problems compiling. firebase的google-services.json文件可能在编译时遇到了问题。

I had the same problem because github wasn't pulling correctly, and all you have to do is just add that file manually to your android project. 我遇到了同样的问题,因为github无法正确提取,您所要做的只是将文件手动添加到android项目中。

Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM