D
D
dryganets2014-08-14 22:55:29
Android
dryganets, 2014-08-14 22:55:29

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

3 answer(s)
F
FanKiLL, 2014-08-15
@dryganets

What project files, classes themselves, activities change? Some kind of magic.
Or changing the IDE settings? Which are in the .ideadirectory?
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

V
Vladimir Abramov, 2014-08-14
@kivsiak

>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.

N
niosus, 2014-08-14
@niosus

.gitignore to help you. The correct file for android studio is googled in 2 minutes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question