Let's talk a little about the screen This is the screen of Android Studio
This is the Xcode screen The two screenshots look pretty much the same, but the problem is how to open the sidebar and the console screen below. In the case of Xcode, the familiar upper right So you can open and close it, For Android Studio If you look closely, you can see that the letters are written on the edge of the window. In the image above, the word Project is now pressed, and as a result, the navigation bar appears on the left side. It is recommended that you press all the buttons on the edge of the screen that are a little difficult to understand like this.
To be honest, I don't understand the essential part either. It seems that it is one of the so-called "build tools", and somehow it is recognized as "auxiliary when building". The experience I have actually rewritten and used is when installing plug-ins and the like. So I think, "I think it's like CocoaPods in Xcode." Well, basically I don't mess with it, but I'm guessing that it may have a meaning like AppDelegate in the sense that it's a problem if I don't.
Well, it's also called evidence rather than theory, so for the time being, let's put Realm in the My Application I made last time. (For details, see Realm Java Site.) Quoted from Realm Java site
Step 1: Add the following classpath settings to the build.gradle file at the top level of your project.
There is, and the build.gradle to be changed is displayed in the image below it, but is the order of the files the same?
If they are different, you will be confused as to which of the two build.gradle to rewrite first. Here is the same sequence as the images on Realm Java. How to sort
You'll see a small black triangle at the top of the navigation bar. Just click on it and select Project. Let's actually rewrite it.
A message will appear at the top of the code screen. The content is "Since Gradle has been rewritten, please synchronize." Gradle will always ask you to sync if even a single character changes. Well, if you have decided what to rewrite, you can synchronize at the end, but I'm curious, so I try to synchronize every time this message appears. Quoted from the same site
Step 2: Apply the realm-android plugin in your application level build.gradle file.
Realm is now installed
I don't get an error when I import RealmObject. Now you can use Realm.
You can use Gradle like this.
Up to here for this time. Next, I'll do a little bit about molds.
Introduction to kotlin for iOS developers ①-Environment construction Introduction to kotlin for iOS developers (2) -Project creation Introduction to kotlin for iOS developers ③-About gradle Introduction to kotlin for iOS developers ④-Type [Introduction to kotlin for iOS developers ⑤-Practical XML] (http://qiita.com/parappa1002/items/867c5b30055312e74fdb) [Introduction to kotlin for iOS developers ⑥-kotlin creation] (http://qiita.com/parappa1002/items/9f898feb4f83e672b384)
Recommended Posts