For me its always a struggle to get android sdk tools up and running on new systems. Especially if you use Ionic to build hybrid apps and Android Studio for building native android apps on the same system. In this blog I collect all the errors that I have encountered with solutions.
1. Compiling Ionic app
When I try to build my app and I run the command:
> Ionic run android
I get the following problem in windows.
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
The solution to this problem is very simple when you know how to solve it 🙂
Go to Start → Control Panel → System → Advanced system settings → advanced(tab) → Environment Variables → System Variables → New:
Next add a new system variable:
For me these solutions worked. If this didn’t work for you please add your solution to the comment with a reference to the problem number.
Please feel free to add your own errors and solutions to the comments below. Thanks 🙂
This article is not about the negative aspects of HTML but about that other dark side of HTML that is called shadow DOM . If you are a frontend developer and you have never heard about shadow DOM then you should definitely keep reading because you are missing some cool stuff about webdevelopment.
Today I spoke with a frontend developer at my work and he showed me some really nice tools frontend developers use nowadays for creating websites. As a backend developer I never looked further then Twitter Bootstrap and jQuery but frontend development is so much more I discovered today!
Ajax requests are only possible when the protocol, domain and port number are the same. But sometimes you want to do Ajax calls to a different domain for example when you are creating a shared service that people should be able to call using Ajax or when you are developing locally and you are testing on a remote server. There are multiple ways to get around this restriction for example by using CORS, an iFrame or JSONP. In my last project I got around the restriction using JSONP, so I will explain that here. See links for more information about solving it using CORS.