Black screen after updating to Android Studio 2.2.1 - android

After updating my Android Studio to version 2.2.1 I can't get my app to display anything except black on the screen of my phone. Before updating it used to work. The app uses OpenGL ES 2.0. It works on an emulator but not on the real device. The app is running, it plays sounds as I touch on the screen, it's just not displaying anything. My phone is Huawei Honor 7.
I've tried everything I can think of such as restarting the phone, deleting the app from the phone, cleaning the project multiple times, manually deleting all the build directories and .iml files, disabling the instant run, building with different gradle versions, testing previous revisions of the app, switching between debug and release builds etc.
What could be causing this?

I still don't know what caused this, but what I did to get it working was that I deleted my previous project from Android Studio and made a completely new project with all the new project files stuff that Android Studio created for me, including CMake stuff that didn't exist before, and then copied all the relevant content to it from the previous project. Took one whole day but now at least it works. A lesson learned: Don't update your Android Studio if you're not prepared to spend some time fixing issues. I wish the Android Studio guys had hard of a concept called backwards compatibility...

Related

Xamarin no longer debugging my app

I've been working on a Xamarin project for a few days and have been testing it fine, but today it has suddenly stopped allowing me to debug the app, either via Live Player, or by connecting my smart phone via USB.
The only error I am getting, as far as I can see, is
Failed to debug your app
I've not got a way of testing it on iOS devices, but the built-in Windows Phone emulator runs the app fine, albeit with an error in my code popping up now and then.
What could be causing the Android version to stop debugging, or how do I at least fix it?
There are a couple of steps that can help with that issue:
Clean the solution and exit visual studio
manually delete the .vs folder in your solution directory
Delete the /obj and /bin folders in your shared code, and in each project for the platforms you are using
if you are developing for iOS, sometimes it helps to restart your mac
Start Visual Studio
Rebuild your shared code project
Rebuild every native project
Beyond that also make sure that you are using the latest versions of Visual Studio, Xamarin and Xamarin.Forms on all your computers, and that the nuGet Packages your project is using are at the very same version each in shared and native code
Also check, if your app isn't throwing an unexpected exception during its initialization. Especially if not caught, it can happen that your app crashes before your code gets executed at all.
In addition you may find further information about what is going on at Help -> Xamarin -> Open logs or in the device management in XCode (iOS only)
Try this :
Close visual studio if open.
Open App Data and then go to
(a) Local\Xamarin
(B) Local\Xamarin\Xamarin.Android
Empty these folders.
Open your project and then try to build your application.
Not a proper solution, but I uninstalled and reinstalled Visual Studio. This seems to have fixed the problem, but I've still no idea why it stopped working in the first place.

Android Studio not executing, it only shows splash screen

Android Studio not executes the IDE, it only shows the splash screen, after few seconds, it dissapears.
I tried the following solutions:
I uninstalled the program and installed again
I restarted my PC after installation
I added "JAVA_HOME" and "JDK_HOME" as environment variables
I checked if "studio.exe" process is executing, if IDE is executing in background.
I executed Android Studio as "Administrator"
I disabled Antivirus temporarily
I deleted ".android", ".AndroidStudio", ".gradle", ... folders
These solutions not worked.
Which is the problem with execution?
If you have done this:
do you have installed the JAVA SDK donwload the latest release from here!
be sure to have configured the JAVA_HOME and JDK_HOME in your environmet variables.
then check the .log file generated by Android Studio to get more information about your issue:
C:\Users[MyUser].AndroidStudio1.2\system\log\idea.log
I recently experienced this issue as well.
It was related to me having dual monitors and oddly the secondary screen was not able to load android studio.
In my setup the issue resolved itself once the secondary screen was made the primary screen ( I have an ATI graphic card 8300) with Android Studio 2.3 and Canary build 3.x
This is typicaly a low memory problem. I currently have the same and I was able to make few correlations. If you start your task manager, you will notice that "Disk" goes to ceiling when starting Android Studio. Actually, you will surely notice that it goes more often to 100% that you'd expect and Android Studio is just the perfect vector to observe this, since it consumes a lot of resources.
The annoying part of the answer is that this "Disk 100%" bug on windows 8.1 is really widespread and solutions doesn't seem that straightforward. For the record, if I find my cause (or if I'm all wrong in my hypothesis), I'll keep you posted.
Regards

Android Studio not deploying latest builds of my app

I am using Android Studio-1.0.1 with Genymotion virtual device emulator for app development.Of late,studio has started behaving erratically.
Whenever I make some changes in the layout or the java class files and deploy the application,it does not reflect the changes that I made.
I already tried to:
1.make/clean/build app
2.Uninstalled the app several times from the emulato
3.cleared genymotion cache,invalidated studio cache,and even deleted the build folder of my app to remove old builds,
but it still does not help.
Is there anything else that I can do to solve this problem,and what is its possible cause in the first place?

Phonegap Build in Dreamweaver CS6 - old project runs in emulator instead of current one

I created four or five little test Android apps in Dreamweaver CS6 using PhoneGap Build. Each time, the current app would run in the emulator. Now, instead of running the project in the current site, the emulator64-arm keeps running a previous project when I click the PhoneGap Build icon on the Android emulator home screen. I have tried deleting all my projects from build.phonegap.com, and deleting all but the most recent project from the local drive. Even so, the emulator runs the old project -- which as far as I know, doesn't even exist anymore, either locally or on build.phonegap.com! Do I need to delete the project from the emulator? If so, how would I do that? Any help will be greatly appreciated, cause I'm stumped!
Mac OS X 10.6.8
Mystery solved. The first few times I installed apps on the emulator, I clicked the PhoneGap Build icon to run them. But later appps installed under different names -- I guess based on info I entered into the config.xml file.
Still would be nice to know how to delete those apps from the emulator. But at least the really mysterious part is explained -- why it ran a different app from the one I just built. I was just clicking on the wrong icon.

Android project loading to phone removes previously installed project

I am working with Eclipse and running my apps on my phone(Motorola DROID2 GLOBAL, Android 2.2). Once I install a new project the previous one will disappear. Any ideas? Is this Eclipse problem or the phone?
Is a normal behavior of the Android development enviroment, it remove the application that you're debugging to upload the new one (new version).
It is like when you update an application with the Market, the old one will dissapear.
The problem was related to the operating system. Once I got upgrade pushed on my phone I stopped having this issue. Now it's all works just fine and can see all my apps available.

Categories

Resources