When i reopen my project the design is totally blank - android

I've recently started using android studio. When I reopen my project the design is totally blank and component tree shows nothing to show. Even after this app is running perfectly fine when I run it in my smartphone. Render problem
String index out of range

Click on the highlighted area to see what's wrong.
select 'File > Invalidate Caches / Restart'

Related

Android Studio emulator not starting when I run the project

It was working fine until today. When I clicked run button, emulator selection tab was showing up and I could choose an emulator to try my project. But today, when I click run button, emulator selection screen doesn't show up.
Instead of opening emulator, it executes task 'signingReport' at Run tab at the bottom of screen. I only added the option of Google sign-in and copied a code from this 'signingReport' tab yesterday if that helps.
the problem is very simple just go to the tab right side of the build icon in android studio and
then click on project name and run.it will work fine.please upvote the answer if it was helpful

Unable to scroll in Android Studio

I have Android Studio 3.1 and for some reason I am unable to scroll through the code using the touchpad. I have to manually scroll by dragging the scroll bar on the right, and this can get very tedious and inconvenient if im working on a large project. I used to be able to two-finger scroll on previous versions of Android Studio but for some reason its just not working anymore. I have windows 10 if thats relevant. Any idea how I can fix this?
try to : minimized all open application and refresh window you can say the desktop where you see your wallpaper (Right click on window(HomeScreen)) and click refresh) then pop out And. Studio and press F5 .

Android Studio emulator gets stuck minimised in task bar

I am using Android Studio on Ubuntu 16.04. The AVD emulator starts fine, and I can install apks on it. However, if I change to a different workspace, minimise the emulator, or even click on another window, backrounding the emulator, it appears to minimise(only visible in the task bar), and from then on, it will not maximise again. Clicking on it in the bottom task bar makes it appear for a split second before minimising again. I haven't had this problem with any other window. Anyone know how to fix it?
So far I have tried:
Setting the emulator window to always stay on top
answer to install various libs that have helped people with similar AVD problems
Starting the emulator from the command line
For Windows use:
If a window won’t maximize, press Shift+Ctrl and then right-click its icon on the taskbar and select Restore or Maximize, instead of double-clicking on the icon.
I have found a workaround. By clicking into the window menu from the very top left of the emulator window, I set the emulator to both 'always be on bottom' AND always appear in all workspaces. This way, switching workspaces doesn't have any effect on the emulator, and keeping it to the bottom layer means I can open other programs in other workspaces and not have the emulator in the way. I just can't ever minimise it. It's not ideal, but at least I can do my work!
In the bottom left corner of Android studio, there is a squared icon that allows you to see all Panles. it includes also Emulator. By selecting it, I was able to have my Emulator back on screen (view mode: float).

Android Studio 2.1.1 running old .apk file

Start of with, I tried all the suggestions in SO and none helped me.
Suggestion1,Suggestion2,Suggestion3.
I'm doing some debugging (Just running the app on my device through Android Studio) and I noticed that time after time, changes that I made in the app does not applied to the .apk AS is running.
The only solution I know is to delete the app from my device and then running again and it compiles with the changes I made in the code. Alternatively, I restart Android Studio and it fixes that too.
I try all suggestions on the site including: file -> invalidate Chaches / Restart -> invalidate, and changing my Run -> Edit Configuration settings but turned out unsuccesfully.I also read all the documentation here but It just repeats the answers here.
My Run -> Edit Configuration
So what's up with Android Studio not applying my code changes?
EDIT:
So for now still no fix suggestion is working. Even my File -> Invalidate Caches / Restart -> Invalidate and Restart not working either.
There is a bug with the new Instant Run feature, the app is not reloaded correctly.
You can disable Instant Run in File > Settings > Build, Execution, Deployment > Instant Run and uncheck the first checkbox. Now when you click the Run button, the app will be refreshed correctly.
How do you deploy the changes in your app to the device? I used to do it by pressing the green triangle (the "play" button) which is the first on the right from the name of the app in the top toolbar. In the new AS version, when you make changes to your app, that button gets a small thunderbolt icon next to the green triangle, like here:
This new icon means that AS will try to do an "Instant Run", ie. to make a hot swap or a warm swap to your app as it is running. Sadly, this hasn't been working as advertised for me (I have been using the new AS for a week now). Instead, I go for the "ReRun selected configuration" button, the fifth on the right, with the gray square and the curved arrow in order to send the changed .apk to the device.

Right click on Eclipse "Project Explorer" doesn't change focus

I'll start by saying that everything was fine until I had some system problems a couple of days ago and my machine froze. A reset corrected that, and then I upgraded my VMWare, which insisted that I bring Eclipse down first. Not sure which of those screwed things up.
I'm in the source panel editing the source for an Android project. I save, then right click the project in the Project Explorer panel expecting to select Run As and pick the run mode. Instead, the Panel Explorer doesn't take focus before popping up the menu, so I get "Run Configurations" only. Also, I can't double click a source file and pop it up without first clicking the Project Explorer panel header first to switch the focus.
Anyone seen this before? I'm guessing there's some setting file that got corrupted. The interruption in workflow is driving me nuts. Help!

Categories

Resources