Answer the question
In order to leave comments, you need to log in
How do you solve problems with project generation in Android Studio?
Good afternoon.
Recently I switched to a project where Android Studio is used, before that I used Eclipse for 5 years.
The team uses Mac & Linux.
When you run a project under Linux, the project files are automatically modified.
In fact, there are no changes - just a change in the order of dependencies.
When opening a project under Mac, the order changes again.
When updating the IDE, similar things usually happen.
If one person updated and committed changes to all other developers from the IDE, the project is no longer built (wrong version of gradle).
How do you solve such problems?
Answer the question
In order to leave comments, you need to log in
What project files, classes themselves, activities change? Some kind of magic.
Or changing the IDE settings? Which are in the .idea
directory?
If the second put this directory in .gitignore
#################
## Idea
#################
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
## Directory-based project format
.idea/
# if you remove the above rule, at least ignore user-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# and these sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
## File-based project format
*.ipr
*.iml
*.iws
## Additional for IntelliJ
out/
# generated by mpeltonen/sbt-idea plugin
.idea_modules/
# generated by JIRA plugin
atlassian-ide-plugin.xml
# generated by Crashlytics plugin (for Android Studio and Intellij)
com_crashlytics_export_strings.xml
>If one person has updated and committed changes to all other developers from the IDE, the project is no longer built (wrong gradle version).
and here gradlew will help you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question