question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

android studio put itself into read only mode for all files

See original GitHub issue

Steps to Reproduce

standard development for flutter, somehow android studio decided every file was read only (which was not the case). seems clearing .idea directories fixed the issue. but this sort of behavior isn’t acceptable.

begging that flutter move away from android studio as the defacto development environment. its extremely fragile and brittle. to the point where everytime I’ve tried to use android studio I spend more time debugging the IDE than actually writing code.

Version info

[✓] Flutter (Channel beta, v1.0.0, on Linux, locale en_US.UTF-8)
    • Flutter version 1.0.0 at ${HOME}/development/flutter
    • Framework revision 5391447fae (3 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at ${HOME}/Android/Sdk
    • Android NDK at ${HOME}/Android/Sdk/ndk-bundle
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = ${HOME}/Android/Sdk
    • Java binary at: ${HOME}/development/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] Android Studio (version 3.2)
    • Android Studio at /opt/android-studio
    • Flutter plugin version 31.3.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] Android Studio (version 3.2.)
    • Android Studio at ${HOME}/development/android-studio
    • Flutter plugin version 31.3.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] Connected device (2 available)
    • Android SDK built for x86 • emulator-5554 • android-x86   • Android 9 (API 28) (emulator)

• No issues found!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:22 (4 by maintainers)

github_iconTop GitHub Comments

26reactions
IluhinDotProcommented, Jul 12, 2019
  1. Close Android Studio.
  2. Save .idea folder for future restore (if something happend)
  3. Remove .idea folder
  4. Start Android Studio and open project.
10reactions
H-Donaldsoncommented, May 14, 2019

This issue is STILL happening. I would really appreciate a fix. I am spending more time uninstalling and reinstalling IDE’s than developing. And no, the lock icon to writeable does note work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Android Studio - File is read only - Stack Overflow
Try this: Go to the file in the Windows explorer and make an rightclick and then click on properties. Uncheck write protect!
Read more >
Data and file storage overview - Android Developers
Overview · Media · Photo picker · Documents and other files · Datasets · Manage all files on a storage device · Save...
Read more >
Access app-specific files - Android Developers
To access app-specific files from external storage, call getExternalFilesDir() . To help maintain your app's performance, don't open and close the same file...
Read more >
Access media files from shared storage | Android Developers
If scoped storage is enabled, the collection shows only the photos, videos, and audio files that your app has created. Most developers won't...
Read more >
Known issues with Android Studio and Android Gradle Plugin
To fix the issue for all future projects, click File > Close Project. You should see the welcome screen. Then click Configure >...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found