im a total newbie to Android Studio. I know the blank Preview screen is a known issue. On another thread a solution was to change something called 'AppCompat'.
The solution given was as follows:
"Change AppCompat library version in Gradle :
From
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
To
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
It Works !"
My question is, where do I find the AppCompat library version so that I can change this 1 line of code?
Many thanks
Fe
Related
I have set up my android studio with all plugins I had before. I am facing a problem and I can not resolve it, The problem is when I am selecting a line to edit or delete the cursor then turns into insert mood and then I can not do nothing like deleting or editing. How can I resolve this? I am using Android Studio 4.0.
This is the video link I uploaded it to show you the problem just 1 min video. This will clarify my statements.
See The Problem in This Video
I got the solution here,
This made my day.....
Solution Link
Solution Video
Check for the first time if you didn’t activate the insert mode. Keyboard shortcuts for the android studio will not be the source of that bug. You have to check the Android Studio plugin to disable the one which causes the problem of typing.
You just have to uninstall or disble the ideavim plugin and you're good to go.
Windows 10, Android studio 3.0.1.
Cloned kotlin koans and tried to run a test in Android Studio. How do I do that? The doc says "To run use the 'test' icon on the gradle panel". Um, what gradle panel? I don't see one, nor any way to bring one up.
Somebody else here asked a similar question (Run Kotlin Koans tests from Android Studio), he says he gets a green arrow by the test. Not seeing any green arrows anywhere.
I'm new to both Android Studio and Kotlin, but have used several other languages and IDEs over the past 40 years or so.
you must use the icon "check task" (is the check green icon in photo attachment) on "Task Description" for tests your implementations.
This is repeated here run-kotlin-koans-tests-from-android-studio
I want to watch android sources code, but Android Studio has so many errors in base Android code. How do I fix these?
Since no one has jumped in here to help with this...
The longer answer here is that the imports (in red) are failing because Android Studio can't find them. So all the calls made to those libraries are failing. So ALL your code after that is full of errors.
For instance, the android.annotation.ColorInt seems to be broken. A quick Google search provides THIS: https://developer.android.com/reference/android/support/annotation/ColorInt.html
Which tells me that the reason that dependency is broken is because whatever you have there is deprecated and should now use a new reference.
Continue with this sort of research and your problem is solved.
I am trying to import official Google code styles into Android Studio 1.5.1.
I have placed the file named intellij-java-google-style.xml here:
/Users/me/Library/Preferences/IdeaIC14/codestyles
As described by this answer on Stack. However, it does not appear:
I further attempted the approach described here and placed the same file in ~/Library/Preferences/AndroidStudioBeta/codestyles, but that also did not work.
Can anyone suggest the right way to import codestyles in Android Studio 1.5.1? Here is exactly what I am running:
You've placed the code style .xml in a path used by IntelliJ IDEA, not Android Studio. The corresponding path for Android Studio is:
/Users/me/Library/Preferences/AndroidStudio1.5/codestyles
When I was using the Android Studio (1.4.1), after a while I ran into some visual glitches. I then fixed these by moving the window to my secondary monitor. This then happened again, after about 5 minutes.
I was wondering if this was documented, and if there is a known way to fix it.
Android Studio is having a strange "cascading display" glitch?
Try this:
Android Studio\bin\idea.properties
Add
sun.java2d.d3d=false
It seems that Java and DirectX are colliding on 2D issues.
You will have the same problem with many java apps on that graphic card.
It seems that the DirectX and Java have a collision on specific system settings.
To solve this:
In windows:
1. open Environment Variables
2. add a new variable
3. name it _JAVA_OPTIONS
4. add the following value -Dsun.java2d.d3d=false -Dsun.java2d.noddraw=true