intellij尝试

文章链接:http://www.liuschen.com

intellij是Androidstudio的前身,所以开发Androidstudio的插件需要在intellij上进行。

安装后配置完SDK,JDK后build项目报异常:

Gradle sync failed: The newly created daemon process has a different context than expected.
		It won't be possible to reconnect to this daemon. Context mismatch: 
		Java home is different.
		Wanted: DefaultDaemonContext[uid=null,javaHome=F:\programer\IntelliJIDEA\jre,daemonRegistryDir=C:\Users\XX\.gradle\daemon,pid=78516,idleTimeout=null,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=GBK,-Duser.country=CN,-Duser.language=zh,-Duser.variant]
		Actual: DefaultDaemonContext[uid=e7392332-8703-4ff8-8fd8-4d9e707ccc63,javaHome=C:\Program Files (x86)\Java\jre1.8.0_101,daemonRegistryDir=C:\Users\XX\.gradle\daemon,pid=105692,idleTimeout=60000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=GBK,-Duser.country=CN,-Duser.language=zh,-Duser.variant]
		Consult IDE log for more details (Help | Show Log)

因为安装时,在Intellij目录下安装了jre,而我配置的JDK是我一直是用的那个版本,所以产生冲突了。

想要开发插件是一个即时的想法,因为担心破坏目前的开发环境,就没再进行下去。

Loading Disqus comments...
Table of Contents