Open
Conversation
- "Externally added files can be added to Git" notifications in Android Studio won't be displayed regarding build output files. - "git status" won't list irrelevant build files.
Common/build/outputs/mapping/*/mapping.txt will still be generated. (That file will contain exactly what Common/printmappingout.txt would have contained.) (The original reason to modify Common/proguard-rules.my was to stop an output file (printmappingout.txt) being written in a directory where source files are stored.)
Android Studio would show a notification window regarding an invalid path when the project was opened for the first time if the SDK couldn't be found at the location specified in local.properties. (local.properties specified the Android SDK directory as '/home/jka/Android/Sdk'.)
Now, with no local.properties file in the git repo, there's no notification about an invalid SDK directory when opening the project for the first time. A new local.properties file specifying the correct SDK directory is created when the project is opened.
If there's a need to regenerate the local.properties file after pulling this commit one can do that by clicking on "File / Sync Project with Gradle Files" in Android Studio. (The Android SDK directory can also be specified using the ANDROID_HOME environment variable.)
The first line of the local.properties file was:
## This file must *NOT* be checked into Version Control Systems,
local.properties was added to .gitignore in f53ea03.
0da1031 to
991386c
Compare
Contributor
Author
|
I've just amended the commit message of the last commit ("Delete local.properties file."). I mentioned how the commit can stop Android Studio showing a notification window regarding an invalid path, viz.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some reasons to add a .gitignore file:
git add ."; files that don't need to be versioned will be ignored.