IntelliJ IDEA2016學習小結

前提:本人菜鳥一枚,歡迎狂黑。html

網上找資料基本上全是15以前的,從16開始感受交互頁面改了好多,因此學起來仍是很吃力。java

1,激活網站:http://idea.qinxi1992.cn/android

2,啓動前的配置:ide

  Maven的配置:在Config--(進入Default Setting)Build,Execution,Deployment--Build Tools--Maven;能夠將setting和repository的路徑攝者爲安好的本地的Maven的相應路徑。字體

3,改JDK,IDEA 2016只支持jdk1.8,(親測)本地系統必須裝1.8才行。而後在IDEA的File-->Project Structure-->Project Settings-->Project中將SDK改爲安好的jdk1.8的版本網站

版本過低報的錯:ui

Error:Internal error: (java.lang.UnsupportedClassVersionError) org/jetbrains/jps/android/model/impl/JpsAndroidModelSerializerExtension : Unsupported major.minor version 52.0
java.lang.UnsupportedClassVersionError: org/jetbrains/jps/android/model/impl/JpsAndroidModelSerializerExtension : Unsupported major.minor version 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:270)
    at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:363)
    at java.util.ServiceLoader$1.next(ServiceLoader.java:445)
    at com.intellij.util.containers.ContainerUtilRt.copy(ContainerUtilRt.java:179)
    at com.intellij.util.containers.ContainerUtilRt.newArrayList(ContainerUtilRt.java:168)
    at org.jetbrains.jps.plugin.impl.JpsPluginManagerImpl.loadExtensions(JpsPluginManagerImpl.java:18)
    at org.jetbrains.jps.service.impl.JpsServiceManagerImpl.getExtensions(JpsServiceManagerImpl.java:59)
    at org.jetbrains.jps.model.serialization.JpsModelSerializerExtension.getExtensions(JpsModelSerializerExtension.java:46)
    at org.jetbrains.jps.model.serialization.library.JpsSdkTableSerializer.getSdkPropertiesSerializer(JpsSdkTableSerializer.java:208)
    at org.jetbrains.jps.model.serialization.library.JpsSdkTableSerializer.loadSdk(JpsSdkTableSerializer.java:102)
    at org.jetbrains.jps.model.serialization.library.JpsSdkTableSerializer.loadSdks(JpsSdkTableSerializer.java:83)
    at org.jetbrains.jps.model.serialization.JpsGlobalLoader$SdkTableSerializer.loadExtension(JpsGlobalLoader.java:144)
    at org.jetbrains.jps.model.serialization.JpsGlobalLoader$SdkTableSerializer.loadExtension(JpsGlobalLoader.java:137)
    at org.jetbrains.jps.model.serialization.JpsLoaderBase.loadComponents(JpsLoaderBase.java:61)
    at org.jetbrains.jps.model.serialization.JpsGlobalLoader.loadGlobalComponents(JpsGlobalLoader.java:83)
    at org.jetbrains.jps.model.serialization.JpsGlobalLoader.load(JpsGlobalLoader.java:73)
    at org.jetbrains.jps.model.serialization.JpsGlobalLoader.loadGlobalSettings(JpsGlobalLoader.java:59)
    at org.jetbrains.jps.model.serialization.impl.JpsSerializationManagerImpl.loadModel(JpsSerializationManagerImpl.java:38)
    at org.jetbrains.jps.cmdline.JpsModelLoaderImpl.loadModel(JpsModelLoaderImpl.java:45)
    at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:79)
    at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:267)
    at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125)
    at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:238)
    at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:44)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
View Code

 4,有時候單機右鍵想運行程序的時候發現,沒有下面帶綠色圖標的選項,緣由是程序或者jar包或者依賴還在加載,沒有加載完成idea

5,Maven項目,初次新建Maven項目或者引進的時候,會加載好多的依賴jar包,須要很長時間spa

具體操做:點擊Reimport All Maven Projects,會自動加載.net

下面圖片,在整個交互界面的右下角,用來隱藏界面邊上的操做欄

6,Maven更改本地的Repository和setting配置文件

File-->Settings-->Build,Execution,Deployment-->Build Tools-->Maven

7,更改主題背景顏色(具體如何從網上下載第三方的主題jar包請參考:http://jingyan.baidu.com/article/90895e0fcd5e1d64ec6b0bb9.html),更改字體大小

File->Settings...->Editor->Colors&Fonts中的Scheme下拉框中會有加入的新主題,選擇對應的monokai主題。(若是下拉框中沒有新加入的主題,能夠再重啓一次)

IntelliJ IDEA14中 配置Sublime 的monokai主題

 File->Settings...->Editor->Colors&Fonts中的Font能夠更改字體大小:首先,單擊save as...彈出的對話框改個名,而後單擊OK;而後,更改字體的Size;最後,應用保存

相關文章
相關標籤/搜索