mistaken override from github how to cancel? - android-studio

I did big mistake.
could I back up? (the recent version is not on github)
I only have recent application (code/program) inside my emulator
but code is completely messed up
I really want a help
thank you

If you are using Android studio, it uses its own Version Control.
Click on VCS > Local History > Show History from where you can travel back to where the code was working.

Related

Upload project from android studio to github

i tried to use VCS > Import into version control > Share project on GitHub. https://snipboard.io/aTBxe9.jpg
However i got an error https://snipboard.io/6Eashw.jpg . then i used https://stackoverflow.com/a/27701083/15334005 and followed all the steps yet none of my files appear on github.
https://snipboard.io/7sSbcq.jpg
i would share any further information required. if someone provide me an updated ist of instruction to be followed since both github and android studio have changed w.r.t previous answer i promise to update the steps for newer version and changes below this line as i learn to do it for use of future people.
Will update my answer as i learn and will keep this answer updated wrt newer version and changes for future users.

Version 7.13.0 Bixby IDE update. Action .js scripts appearing as normal text?

I have updated the Bixby IDE today to the most recent update: Version 7.13.0. I was wondering if it is normal for the .js action scripts to appear without theme and color?
Thank you.
Thank you for letting us know.
A hot fix has been deployed by IDE group. I've verified the fix myself.
Version (7.13.0-r20d.15375) would fix this issue. Please restart IDE and follow the prompt to download/install new version.
Sorry for the inconvenience and thank you for letting us know this issue so quickly. Wish you have some fun developing with Bixby.

Error:Problems reading data from Binary store

I'm trying to import an old project into the Android Studio but I get a gradle refresh error:
Error:Problems reading data from Binary store in /tmp/gradle8567448341990504089.bin (exist: true)
I saw that there is a similar question but no-one answered and I want to know how to solve this problem. Thanks!
To anyone facing the same problem, it might be happening because you were using Gradle in offline mode, but there is no cache available there. So, I hope this will work for you.
Check If you are working in offline mode. If not then please un-check it from below path.
File->Settings->Build,Execution,Deployment->Gradle-> Uncheck Offline Work
In case you are using flutter, try upgrading flutter with the command
flutter upgrade

Can't rename resource (layout) files (Android Studio 3.0 Beta 3 is installed)

Beta 3 doesn't allow to rename resource files such as layout files. It does show the renaming dialog, but when trying to apply changes it reads the following error message:
Refactoring cannot be performed
File .../myapplication/R.java is read-only
Also I have Beta 2 version in a neighbor directory and renaming works perfect. Any ideas how to fix that?
UPD:
I reported the bug (#65079508), and now it is marked as a duplicate of 65032914 https://issuetracker.google.com/issues/65032914
So, the issue is even wider and if I understand it well the bug will be fixed in some coming version of the Studio.
UPD#2:
Beta 4 is released. The bug is still not fixed.
UPD#3
Fixed in Beta 5.
meh, just get rid of the generated files && then refactor.
Gradle --> app --> build --> clean.
I am experiencing the same issue on Android Studio 3.0 Beta 3. I fixed the problem by:
Exiting Android Studio
Navigating to the folder that the layout file is saved in (either CLI or GUI)
Rename the file to whatever you want the refactored file to be called.
Reopen Android Studio.
Obviously this forces you to have to manually refactor the references to the old file, but I tried about a dozen different things (changing R.java permissions, Gradle clean, invalidate cache, etc.) and none of them worked.
Anyone else who has this issue should submit this bug in Android Studio by using Help > Submit Feedback.
Also, is there a chance you might also be using multiple layouts folders like I am?
I've got the same issue.
I was solved this with
File --> Invalidate Caches and Restart --> Invalidate and Restart.
And than try to rename again.
Hope this help.
Happy coding :)
I was able to work around it temporarily by moving my R.java file into my src directory. For example, if you're package name is com.example.sample, move your R.java file from app/build/generated/source/r/debug/com/example/sample/R.java to app/src/main/java/com/example/sample/R.java. Be sure to delete it when you're finished refactoring, it will be regenerated during the build process.
Cleaning doesn't work for everything. For instance, renaming a view isn't possible because the R.java file is automatically regenerated. I tried disabling Instant Run, but that didn't help either. Eventually I had to rename the view manually in the layout file.
From the comments on the bug ticket at https://issuetracker.google.com/issues/65032914 the fix will be in the beta 5 release of Android Studio.

AndroidStudio update destroyed everything and I need help as to which way I should rebuild (details of fiasco within)

After this huge mess from one AndroidStudio update, am cleaning everything and starting from scratch.
I'd like to ask if anyone knows if I should go with specific versions of Java.
But first my headache, although I just cleaned my computer of AndroidStudio.
I have Win 10 64 bit
HAD AndroidStudio 1.51 (it said it was JRE:1.7.0_79-b15 amd64)
After the update I had a "Unsupported major.minor version 52.0" error
Following some posts I upgraded the Java on my machine.
First "1.8.0_74" but AndroidStudio couldn't find the JDK directory, so I installed "1.8.0_73" and AndroidStudio found the JDK directory. But then I started getting rendering errors but with Rendering Problems Exception raised during
rendering: com.android.ide.common.rendering.api.LayoutlibCallback.getXmlFileParser(Ljava/lang/String;)Lorg/xmlpull/v1/XmlPullParser;
Anyway, that's it. This has become such a tragedy that I would rather start from scratch, but if anyone could point me as to the proper (steps) of which way I should go, I would really appreciate it.
Thanks ahead,
Sergio
I met this issue when I updated the api android 23 N (preview). In xml editor, change the Api to render into Api 23 android 6.0 and Autimatically Pick best.This would solve the problem.
refer: link
Yes.. i also faced same problem,I have resolved with changing the version to api 23.generally it will take best/latest version ,in my case its set to N preview.

Resources