RSS

Author Archives: xinyustudio

React Native: “No dimensions set for key window” error and solution


In my recent project, I created a brand new React-native project, and run that on the simulator, then the captioned error pops up:

“No dimensions set for key window”

What hell does this mean? After a quick search on the internet, we found the solution: it turns out that the terminal (Mac) or the command line window is running for quite some time, and for unknown reasons, some of the information is outdated, which results in the captioned errors.

So the solution is simple:

  • Turn off all the terminal instances, restart the terminal/command line window,
  • Re-run the command:  react-native run-ios

That is it! Happy coding!

Advertisements
 
Leave a comment

Posted by on September 19, 2017 in Programming, React-native

 

Tags: , , , ,

Learn React VR: A great tutorial series deserving a good read


Chapter 1 | Hello Virtual World
Chapter 2 | Panoramic Road Trip
Chapter 3 | Outdoor Movie Theater
Chapter 4 | Transitions and Animations
Chapter 5 | Star Wars Modeling
Chapter 6 | Vector Graphic Exploration
Chapter 7 | UI/UX Principles for VR Design
Chapter 8 | Building a VR Video App
Chapter 9 | Reacting to Our Exploration

Please support Michael Mangialardi either by up-voting his articles as shown above or purchase his git book.

Enjoy!

 
Leave a comment

Posted by on July 27, 2017 in General, Programming, React-VR

 

Tags: , , , ,

‘com.github.dcendents.android-maven’ not found, the solution


Recently, I build some open source Android libraries, and when building the project, below error occurred:

Error:(2, 0) Plugin with id ‘com.github.dcendents.android-maven’ not found.

Quick Solution:

install Yarn, everything works!

Mac: brew install yarn
Windows: refer to this link.

 

A less elegant solution is to manually change the top level build.gradle:

From

dependencies {
classpath ‘com.android.tools.build:gradle:2.2.2’
}

To –>

dependencies {
classpath ‘com.android.tools.build:gradle:2.2.2’
classpath com.github.dcendents:android-maven-gradle-plugin:1.5  //Add this
classpath com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3      //Add this

}

Rebuild. It should work. But this is tedious, for every project (e.g. react-native), you repeat doing so?  Emmmmmm!

Now try to create a new react-native project using:

react-native init ProjectName

Run the project:

react-native run-android  // or
react-native run-ios

It compiles and works! Happy coding.

 
2 Comments

Posted by on April 18, 2017 in Android

 

Tags: , , , , , , , , , , , ,

Using Firebase in Unity3D Tutorial 1: Basics and setup


Firebase is a platform that helps you quickly develop high-quality apps,  It is made up of a collection of features that is very handy for Unity3D, Android, iOS app developers.

In this series of tutorials, I am going to cover how to harness Firebase features to streamline your app development process. Each tutorial is designed to be compact, and follows the SRP (Single Responsibility Principle), so that you can use these take-aways quickly in your own development.

Read the rest of this entry »

 
1 Comment

Posted by on January 21, 2017 in Programming, Unity 3d

 

Tags: , , , , , , , ,

Firebase Unity3D example: a walk through tutorial


image

Read the rest of this entry »

 
3 Comments

Posted by on January 16, 2017 in Programming, Unity 3d

 

Tags: , , , , , , , ,

How it feels to learn JavaScript in 2016


Orignal article here. Interesting!

 
Leave a comment

Posted by on January 12, 2017 in Programming