Intellij IDEA中file size exceeds configured limit解决

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://zhangboyi.blog.csdn.net/article/details/89388412

 

 

把Hadoop源码导入IDEA中后,其中有个YarnProtos 文件代码为3.28MB,IDEA直接就不把它当java类看了,

报file size exceeds configured limit错误。

 

 

解决办法如下:

你可以尝试修改intellij IDE安装目录下的bin/idea.properties,

 

mac 地址为: /Applications/IntelliJ IDEA.app/Contents/bin

 

将其中的

idea.max.intellisense.filesize=2500
改成大一些,比如
idea.max.intellisense.filesize=25000

 

idea.max.content.load.filesize=20000

更改为:

idea.max.content.load.filesize=200000

 

 


然后重启问题解决。

展开阅读全文

IntelliJ IDEA中 子项目文件路径问题,求解决

05-09

先看图,然后我仔细解释n最近发现找不到文件,同样的代码在eclipse中可以正常找到,对于idea不熟悉,所以来此请教,我是把一些文件拷resources目录下,发现找不到了,使用相对路径,我看到target/classes中是编译过去了的啊,这个路径该怎么写?n在eclipse中n(1) 主项目包含的两个模块 topsoft-test(web项目) topsoft-utils(java maven项目)n(2)(3)(4) 根据new File("log4j.xml);以及创建文件可以发现路径是相对于子项目topsoft-utilsnn的跟路径,(4)标注了这个测试类是在topsoft-utils中运行的n(5) 假如说我想访问(5)标注处的这个文件,相对路径该怎么写?n转到IntelliJ IDEA中,目录结构一样,运行的测试也是一样,打印出来的目录不同,我想这是IDE的区别,或者说是在IDEA的配置当中哪里出了问题,导入maven项目我就默认的 Project Structure 我看到里面有三个模块。n路径中只写文件名不是相对于classpath路径么,为什么相对于项目的跟路径了,eclipse中这样可以接受,至少还能加上src/main/....访问到,而在IntelliJ中就完全不对了,主项目打包会产生子项目的jar包,而我访问的文件应该是相对于子项目的classpath路径,在IntelliJ中,resources是在classpath中的,如果只写名字应该是相对于子项目的resources目录才对啊,理论上。n请赐教nn我查看了打包编译后的目录,确实是打进去了的,为什么通过只写文件名这种方式就访问不到呢?nn![图片说明](https://img-ask.csdn.net/upload/201505/09/1431177338_85711.png)n![图片说明](https://img-ask.csdn.net/upload/201505/09/1431177353_676840.png)nn![图片说明](https://img-ask.csdn.net/upload/201505/09/1431177361_924830.png)n![图片说明](https://img-ask.csdn.net/upload/201505/09/1431177369_671312.png)n![图片说明](https://img-ask.csdn.net/upload/201505/09/1431177379_723727.png)n 问答

OOM bitmap size exceeds VM budget 处理

03-27

我在从widget 多次进入程序,再退出到桌面,再通过widget进入程序,反复操作,出现如下异常rn 启动activity的代码 rn MailListBindData mailData = ServiceForWidget.getWidgetData()rn .get(curPosition);rn Intent showEmailDetail = new Intent();rn showEmailDetail.setClass(context,rn MailDetailAndDoneActivity.class);rn showEmailDetail.putExtra(MailListActivity.extraKey_ThreadMode,rn false);rn showEmailDetail.putExtra(MailListActivity.extraKey_accountId,rn mailData.getMessageInfo().getAccountId());rn showEmailDetail.putExtra(MailListActivity.extraKey_folderId,rn mailData.getMessageInfo().getFolderId());rnrn showEmailDetail.putExtra(rn MailListActivity.extraKey_groupPosition, curPosition);rn showEmailDetail.putExtra(rn MailListActivity.extraKey_childPosition, 0);rn showEmailDetail.putExtra(MailListActivity.extraKey_editType,rn MailListActivity.EDITTYPE_NONE);rn showEmailDetail.putExtra(MailListActivity.extraKey_objectView,rn Constants.MAIL_DETAIL_VIEW);rnrn showEmailDetail.putExtra("messageInfo",rn mailData.getMessageInfo());rnrn showEmailDetail.putExtra(MailListActivity.extraKey_MailCount,rn ServiceForWidget.getWidgetData().size());rn showEmailDetail.putExtra(Constants.ACTIVITY_NAME_KEY,rn MediumMailWidget.class.getSimpleName());rn showEmailDetailrn .putExtra(rn MailListActivity.extraKey_MailTypeTitle,rn context.getString(R.string.unified_account_receive_folder_name));rn showEmailDetail.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);rn showEmailDetail.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);rnrn context.startActivity(showEmailDetail);rnrnrn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): java.lang.RuntimeException: Unable to start activity ComponentInfocom.nttdocomo.communicase.carriermail/com.nttdocomo.communicase.carriermail.activity.MailListActivity: android.view.InflateException: Binary XML file line #20: Error inflating class rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1654)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1670)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.app.ActivityThread.access$1500(ActivityThread.java:117)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.os.Handler.dispatchMessage(Handler.java:99)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.os.Looper.loop(Looper.java:123)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.app.ActivityThread.main(ActivityThread.java:3695)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at java.lang.reflect.Method.invokeNative(Native Method)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at java.lang.reflect.Method.invoke(Method.java:507)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at dalvik.system.NativeStart.main(Native Method)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): Caused by: android.view.InflateException: Binary XML file line #20: Error inflating class rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.view.LayoutInflater.createView(LayoutInflater.java:518)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at com.nttdocomo.communicase.carriermail.factory.MailListViewFactory.initMailTitleBarView(MailListViewFactory.java:1585)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at com.nttdocomo.communicase.carriermail.factory.MailListViewFactory.createBlockFolderView(MailListViewFactory.java:1432)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at com.nttdocomo.communicase.carriermail.factory.MailListViewFactory.createMailListView(MailListViewFactory.java:259)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at com.nttdocomo.communicase.carriermail.activity.MailListActivity.createListView(MailListActivity.java:670)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at com.nttdocomo.communicase.carriermail.activity.MailListActivity.onCreate(MailListActivity.java:790)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1618)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): ... 11 morern03-27 18:35:30.540: ERROR/AndroidRuntime(29243): Caused by: java.lang.reflect.InvocationTargetExceptionrn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at java.lang.reflect.Constructor.constructNative(Native Method)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.view.LayoutInflater.createView(LayoutInflater.java:505)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): ... 26 morern03-27 18:35:30.540: ERROR/AndroidRuntime(29243): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budgetrn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.graphics.Bitmap.nativeCreate(Native Method)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.graphics.Bitmap.createBitmap(Bitmap.java:477)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.graphics.Bitmap.createBitmap(Bitmap.java:444)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:349)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:498)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:473)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:336)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.content.res.Resources.loadDrawable(Resources.java:1709)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.view.View.(View.java:1951)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.widget.ImageView.(ImageView.java:112)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.widget.ImageButton.(ImageButton.java:85)rn03-27 18:35:30.540: ERROR/AndroidRuntime(29243): at android.widget.ImageButton.(ImageButton.java:81)rn 论坛

没有更多推荐了,返回首页