I want work with Android studio but I get some problems when create projects
slow errors when coding and when resume building apk
Use the Genymotion emulator instead of the default one.
Related
I'm trying to learn to write an Android App on intellij idea.And I've already downloaded JDK and SDK and have set them.However,when I run the program(just "hello world") on android emulator,it can be opened but always black screen(when I press the button,no response).But I can run my program on my real phone.So how to let the emulator work?
I have already turned down the resolution ratio and have checked that my cpu is vertualized,but that didn't work.
Where is the problem?And how to solve that?
Ok,I have solved the problem...I didn't download Android emulator on intellij idea.
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.
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...
I downloaded Android Studio 1.32 and installed it, downloaded also all APIs. I tried to make a new project and get the emulator working. I made an empty blank project which has "Hello World" text already in it.
If I try to make a new device Tools-AVD-Manager it lets me make a new device.
Then I click Tools-Android-Android Device Monitor. It shows nothing and I have tried to made some..
When I try to run the project and it gives "Create Android Virtual Device" (which gives only few details about it). This produces error: unable to find emulatorsnapshots.img.
I tried to test this before using Eclipse which worked somehow but always there were emulator errors. So I was thinking Android Studio will fix them... But seems that is not working, even downloading whole 4gb packet...
Check my response to a similar issue: Android Studio Virtual Device not loading
Genymotion it's a better solution when that kind of issues happen and it can be easily use it with Android Studio.
I don't why, but every time that i launching my application on real device is take several minutes .
Any body know why it's Occurs?
I run on Kepler (Eclipse)
EDIT
Maybe it's factor. My application it's build like that:
Main lib with android classes.
Android application that use Main Lib.
Maybe the runing is slow because this?
I found my problem..
The workspace sit at cloud that use disk drive at my computer.
You might be experiencing issue with “Refreshing external Folders”. If so the solution can be found here How to avoid "Refreshing external Folders" in Android development in Eclipse