Moved my Android projects from Eclipse to Android Studio 2.0 today.. Was surprised when couldn't commit new projects into SVN we use for Eclipse. Android Studio just wasn't able to finish "Performing VCS refresh" operation during probably 2 hours.. It's really disappointing..
Has anybody solved this problem? not for Intellij but for Android Studio?
Yea.. I know, I'll try to commit from command line, then check it out, then..
Or I'll switch my repository to Git but all these are "last chance" solutions.
Related
I have just upgraded Android Studio from Arctic Fox to Bumblebee and AGP from 7.0.4 to 7.1.0
The project currently has:
The apk generated by gradle task assembleOfficialRelease for flavor "official" was in the following directory for many years:
..app/build/outputs/apk/official/release/app-official-release.apk
I assume it is the new AGP that has changed the location to:
..app/build/intermediates/apk/official/release/app-official-release.apk
I am trying to find out what else AGP has done to the apk but could not find any in the release notes.
I wonder if anyone with insights could tell me what changes the new AGP has done to the apk before I release it to users.
Update(2022-05-09)
Android Studio Chipmunk has put the apk file back to the folder ..app/build/outputs/apk/official/release/ without any notification. It killed me a lot of time again before I realized this.
I also observed this weird behavior. It seems like if you run the gradle task in Android studio, it will put the apk files in intermediates, while if you run the gradle task on command line (at least for bash on Linux), it will put the files in outputs.
The canary build of android studio with android gradle plugin 7.3.0-alpha05 seems to solve this issue.
Things i have done to resolve this issue:
Clean Build & Rebuild
Deleted .idea file
Invalidated Caches/ Restart.. option
Turn On Power Save Mode.
SDk is up to date.
Sync Project with Gradle Files done.
Reinstall Android Studio done
recreate new project done
changed something in app Gradle file and synced the project again
android studio old version change also not help
Intellij shows to reset to default namespace, it will delete android namespace..
(In Project, Layout file corrections not reflecting into app)
Android Studio Version
Error Image
gradle image
Intelij Solution
This worked for me
Close Android studio
Delete all files from
C:\Users\.AndroidStudio3.2\system\caches
C:\Users\.AndroidStudio3.2\config //not importent
start android studio
Ran into the same issue. Seems to be something specifically related to Android Studio 3.2. My solution on Windows was to delete everything withing the cache/ folder in the .AndroidStudio3.2/ folder.
This problem happen for Android studio Cache & History.
Firstly In android studio go File -> Close Project and Exit Android Studio.
Then Delete below 2 Folders:
C:\Users\user-name.AndroidStudio3.X\system\caches
C:\Users\user-name.AndroidStudio3.X\config\terminal\history (optional)
Open the Android Studio and Enjoy!
Complete uninstall Android Studio (including system and cache files) and Reinstalling clears my bug...
I've connected my Android Studio with SVN and everything worked so far. Now there is following problem:
I've added an image file to my drawable folder and added it also to the VCS. After that I moved the image file to the drawable-nodpi folder.
If I want to commit my changes Android Studio says "...png is scheduled for addition, but is missing".
How can I handle this problem in Android Studio?
Your question is not realted to Android Studio at all. It's just SVN complaining about missing file stagged for commit. So if you changed your mind, unstage it
svn revert FILE
EDIT
I don't know how to solve this with Android Studio. I don't have svn command
Andoid Studio is IntelliJ based so see their help:
https://www.jetbrains.com/help/idea/revert-changes-dialog.html
I have SVN connected with Android studio (Windows), now I want to delete branch from my repositories. How i can do it with Android Studio?
You should use VCS | Browse Subversion Repository and run Delete context-menu command to remove the branch.
Note that Android Studio is based on IntelliJ IDEA. Therefore IDEA's documentation should also work for Android Studio. Read this help topic:
SVN Repositories Window
I want to study the source code of android-smspopup .But when I download the source code and import this into android studio, the android studio pop up a dialog with a title"Import Gradle Project" and a blank to fill named Gradle home. Does any one know why this happens? And what to fill in Gradle home?
The source code doesn't include the Gradle wrapper files, which it should; the Gradle wrapper is responsible for automatically downloading the correct version of Gradle so you don't have to go through this trouble. I would recommend that you copy the Gradle wrapper over from another project into this source tree and use it. In another project that you've created with the New Project wizard, copy these files to the root directory of the project:
gradlew
gradlew.bat
gradle (directory)
When you open up the project in Android Studio it's likely to complain about the version of the Android Gradle plugin and offer to fix it for you; let it do that. If you're running the latest version of Android Studio (0.4.6 as of this writing), it's fairly smart about getting the versions of Gradle and the plug-in right, but in older versions it could get a little confused and have to ask you multiple times.
NOTE: instead of copying the wrapper files over, you can instead install a compatible version of Gradle and put the installation directory in when it asks for Gradle home. That will work, but be aware that Android Studio is very finicky about what version of Gradle it's compatible with; usually it requires a specific version that isn't forward-compatible, so for example, if it wants 1.10, 1.11 won't work. As you upgrade Android Studio you'll have to upgrade Gradle as well and it will be a bit of a drag; if you use the wrapper it's easier to make that change.
By the time Android Studio hits 1.0, it will sort out the version issues with Gradle, and it won't be so picky about version numbers, but in the short term, it's a limitation.