java - JVM how to increase constant pool limit -
after trying deploy app, build failed , following error returned.
file size exceeds configured limit (2560000), code insight features not available
i deleted several unecessary libraries , components error still exists. remaining stuff in project needs there. know limit of java constant pool 65535, there way possible increase limit?
r.java file (unnecessary constants won't go away)
public static final class style { public static final int alertdialog_appcompat=0x7f0900a2; public static final int alertdialog_appcompat_light=0x7f0900a3; public static final int animation_appcompat_dialog=0x7f0900a4; public static final int animation_appcompat_dropdownup=0x7f0900a5; public static final int apppreferencefragmentcompatstyle=0x7f0900a6; public static final int apppreferencetheme=0x7f0900a7; public static final int apptheme=0x7f0900a8; public static final int base_alertdialog_appcompat=0x7f0900a9; public static final int base_alertdialog_appcompat_light=0x7f0900aa; public static final int base_animation_appcompat_dialog=0x7f0900ab; public static final int base_animation_appcompat_dropdownup=0x7f0900ac; public static final int base_dialogwindowtitle_appcompat=0x7f0900ad; public static final int base_dialogwindowtitlebackground_appcompat=0x7f0900ae; public static final int base_textappearance_appcompat=0x7f090042; public static final int base_textappearance_appcompat_body1=0x7f090043; public static final int base_textappearance_appcompat_body2=0x7f090044; public static final int base_textappearance_appcompat_button=0x7f090027; public static final int base_textappearance_appcompat_caption=0x7f090045; public static final int base_textappearance_appcompat_display1=0x7f090046; public static final int base_textappearance_appcompat_display2=0x7f090047; public static final int base_textappearance_appcompat_display3=0x7f090048; public static final int base_textappearance_appcompat_display4=0x7f090049; public static final int base_textappearance_appcompat_headline=0x7f09004a; public static final int base_textappearance_appcompat_inverse=0x7f09000b; public static final int base_textappearance_appcompat_large=0x7f09004b; public static final int base_textappearance_appcompat_large_inverse=0x7f09000c; public static final int base_textappearance_appcompat_light_widget_popupmenu_large=0x7f09004c; public static final int base_textappearance_appcompat_light_widget_popupmenu_small=0x7f09004d; public static final int base_textappearance_appcompat_medium=0x7f09004e; public static final int base_textappearance_appcompat_medium_inverse=0x7f09000d; public static final int base_textappearance_appcompat_menu=0x7f09004f; public static final int base_textappearance_appcompat_searchresult=0x7f0900af; public static final int base_textappearance_appcompat_searchresult_subtitle=0x7f090050; public static final int base_textappearance_appcompat_searchresult_title=0x7f090051; public static final int base_textappearance_appcompat_small=0x7f090052; public static final int base_textappearance_appcompat_small_inverse=0x7f09000e; public static final int base_textappearance_appcompat_subhead=0x7f090053; public static final int base_textappearance_appcompat_subhead_inverse=0x7f09000f; public static final int base_textappearance_appcompat_title=0x7f090054; public static final int base_textappearance_appcompat_title_inverse=0x7f090010; public static final int base_textappearance_appcompat_widget_actionbar_menu=0x7f090097; public static final int base_textappearance_appcompat_widget_actionbar_subtitle=0x7f090055; public static final int base_textappearance_appcompat_widget_actionbar_subtitle_inverse=0x7f090056; public static final int base_textappearance_appcompat_widget_actionbar_title=0x7f090057; public static final int base_textappearance_appcompat_widget_actionbar_title_inverse=0x7f090058; public static final int base_textappearance_appcompat_widget_actionmode_subtitle=0x7f090059; public static final int base_textappearance_appcompat_widget_actionmode_title=0x7f09005a; public static final int base_textappearance_appcompat_widget_button=0x7f09005b; public static final int base_textappearance_appcompat_widget_button_borderless_colored=0x7f09009e; public static final int base_textappearance_appcompat_widget_button_colored=0x7f09009f; public static final int base_textappearance_appcompat_widget_button_inverse=0x7f090098; public static final int base_textappearance_appcompat_widget_dropdownitem=0x7f0900b0; public static final int base_textappearance_appcompat_widget_popupmenu_header=0x7f09005c; public static final int base_textappearance_appcompat_widget_popupmenu_large=0x7f09005d; public static final int base_textappearance_appcompat_widget_popupmenu_small=0x7f09005e; public static final int base_textappearance_appcompat_widget_switch=0x7f09005f; public static final int base_textappearance_appcompat_widget_textview_spinneritem=0x7f090060; public static final int base_textappearance_widget_appcompat_expandedmenu_item=0x7f0900b1; public static final int base_textappearance_widget_appcompat_toolbar_subtitle=0x7f090061; public static final int base_textappearance_widget_appcompat_toolbar_title=0x7f090062; public static final int base_theme_appcompat=0x7f090063; public static final int base_theme_appcompat_compactmenu=0x7f0900b2; public static final int base_theme_appcompat_dialog=0x7f090011; public static final int base_theme_appcompat_dialog_alert=0x7f090012; public static final int base_theme_appcompat_dialog_fixedsize=0x7f0900b3; public static final int base_theme_appcompat_dialog_minwidth=0x7f090013; public static final int base_theme_appcompat_dialogwhenlarge=0x7f090001; public static final int base_theme_appcompat_light=0x7f090064; public static final int base_theme_appcompat_light_darkactionbar=0x7f0900b4; public static final int base_theme_appcompat_light_dialog=0x7f090014; public static final int base_theme_appcompat_light_dialog_alert=0x7f090015; public static final int base_theme_appcompat_light_dialog_fixedsize=0x7f0900b5; public static final int base_theme_appcompat_light_dialog_minwidth=0x7f090016; public static final int base_theme_appcompat_light_dialogwhenlarge=0x7f090002; public static final int base_themeoverlay_appcompat=0x7f0900b6; public static final int base_themeoverlay_appcompat_actionbar=0x7f0900b7; public static final int base_themeoverlay_appcompat_dark=0x7f0900b8; public static final int base_themeoverlay_appcompat_dark_actionbar=0x7f0900b9; public static final int base_themeoverlay_appcompat_dialog=0x7f090017; public static final int base_themeoverlay_appcompat_dialog_alert=0x7f090018; public static final int base_themeoverlay_appcompat_light=0x7f0900ba; public static final int base_v11_theme_appcompat_dialog=0x7f090019; public static final int base_v11_theme_appcompat_light_dialog=0x7f09001a; public static final int base_v11_themeoverlay_appcompat_dialog=0x7f09001b; public static final int base_v12_widget_appcompat_autocompletetextview=0x7f090023; public static final int base_v12_widget_appcompat_edittext=0x7f090024; public static final int base_v21_theme_appcompat=0x7f090065; public static final int base_v21_theme_appcompat_dialog=0x7f090066; public static final int base_v21_theme_appcompat_light=0x7f090067; public static final int base_v21_theme_appcompat_light_dialog=0x7f090068; public static final int base_v21_themeoverlay_appcompat_dialog=0x7f090069; public static final int base_v22_theme_appcompat=0x7f090095; public static final int base_v22_theme_appcompat_light=0x7f090096; public static final int base_v23_theme_appcompat=0x7f090099; public static final int base_v23_theme_appcompat_light=0x7f09009a; public static final int base_v7_theme_appcompat=0x7f0900bb; public static final int base_v7_theme_appcompat_dialog=0x7f0900bc; public static final int base_v7_theme_appcompat_light=0x7f0900bd; public static final int base_v7_theme_appcompat_light_dialog=0x7f0900be; public static final int base_v7_themeoverlay_appcompat_dialog=0x7f0900bf; public static final int base_v7_widget_appcompat_autocompletetextview=0x7f0900c0; public static final int base_v7_widget_appcompat_edittext=0x7f0900c1; public static final int base_widget_appcompat_actionbar=0x7f0900c2; public static final int base_widget_appcompat_actionbar_solid=0x7f0900c3; public static final int base_widget_appcompat_actionbar_tabbar=0x7f0900c4; public static final int base_widget_appcompat_actionbar_tabtext=0x7f09006a; public static final int base_widget_appcompat_actionbar_tabview=0x7f09006b; public static final int base_widget_appcompat_actionbutton=0x7f09006c; public static final int base_widget_appcompat_actionbutton_closemode=0x7f09006d; public static final int base_widget_appcompat_actionbutton_overflow=0x7f09006e; public static final int base_widget_appcompat_actionmode=0x7f0900c5; public static final int base_widget_appcompat_activitychooserview=0x7f0900c6; public static final int base_widget_appcompat_autocompletetextview=0x7f090025; public static final int base_widget_appcompat_button=0x7f09006f; public static final int base_widget_appcompat_button_borderless=0x7f090070; public static final int base_widget_appcompat_button_borderless_colored=0x7f090071; public static final int base_widget_appcompat_button_buttonbar_alertdialog=0x7f0900c7; public static final int base_widget_appcompat_button_colored=0x7f09009b; public static final int base_widget_appcompat_button_small=0x7f090072; public static final int base_widget_appcompat_buttonbar=0x7f090073; public static final int base_widget_appcompat_buttonbar_alertdialog=0x7f0900c8; public static final int base_widget_appcompat_compoundbutton_checkbox=0x7f090074; public static final int base_widget_appcompat_compoundbutton_radiobutton=0x7f090075; public static final int base_widget_appcompat_compoundbutton_switch=0x7f0900c9; public static final int base_widget_appcompat_drawerarrowtoggle=0x7f090000; public static final int base_widget_appcompat_drawerarrowtoggle_common=0x7f0900ca; public static final int base_widget_appcompat_dropdownitem_spinner=0x7f090076; public static final int base_widget_appcompat_edittext=0x7f090026; public static final int base_widget_appcompat_imagebutton=0x7f090077; public static final int base_widget_appcompat_light_actionbar=0x7f0900cb; public static final int base_widget_appcompat_light_actionbar_solid=0x7f0900cc; public static final int base_widget_appcompat_light_actionbar_tabbar=0x7f0900cd; public static final int base_widget_appcompat_light_actionbar_tabtext=0x7f090078; public static final int base_widget_appcompat_light_actionbar_tabtext_inverse=0x7f090079; public static final int base_widget_appcompat_light_actionbar_tabview=0x7f09007a; public static final int base_widget_appcompat_light_popupmenu=0x7f09007b; public static final int base_widget_appcompat_light_popupmenu_overflow=0x7f09007c; public static final int base_widget_appcompat_listmenuview=0x7f0900ce; public static final int base_widget_appcompat_listpopupwindow=0x7f09007d; public static final int base_widget_appcompat_listview=0x7f09007e; public static final int base_widget_appcompat_listview_dropdown=0x7f09007f; public static final int base_widget_appcompat_listview_menu=0x7f090080; public static final int base_widget_appcompat_popupmenu=0x7f090081; public static final int base_widget_appcompat_popupmenu_overflow=0x7f090082; public static final int base_widget_appcompat_popupwindow=0x7f0900cf; public static final int base_widget_appcompat_progressbar=0x7f09001c; public static final int base_widget_appcompat_progressbar_horizontal=0x7f09001d; public static final int base_widget_appcompat_ratingbar=0x7f090083; public static final int base_widget_appcompat_ratingbar_indicator=0x7f09009c; public static final int base_widget_appcompat_ratingbar_small=0x7f09009d; public static final int base_widget_appcompat_searchview=0x7f0900d0; public static final int base_widget_appcompat_searchview_actionbar=0x7f0900d1; public static final int base_widget_appcompat_seekbar=0x7f090084; public static final int base_widget_appcompat_seekbar_discrete=0x7f0900d2; public static final int base_widget_appcompat_spinner=0x7f090085; public static final int base_widget_appcompat_spinner_underlined=0x7f090003; public static final int base_widget_appcompat_textview_spinneritem=0x7f090086; public static final int base_widget_appcompat_toolbar=0x7f0900d3; public static final int base_widget_appcompat_toolbar_button_navigation=0x7f090087; public static final int centraltheme=0x7f0900d4; public static final int circletheme=0x7f0900d5; public static final int dlrtheme=0x7f0900d6; public static final int districttheme=0x7f0900d7; public static final int metropolitantheme=0x7f0900d8; public static final int northerntheme=0x7f0900d9; public static final int overgroundtheme=0x7f0900da; public static final int piccadillytheme=0x7f0900db; public static final int platform_appcompat=0x7f09001e; public static final int platform_appcompat_light=0x7f09001f; public static final int platform_themeoverlay_appcompat=0x7f090088; public static final int platform_themeoverlay_appcompat_dark=0x7f090089; public static final int platform_themeoverlay_appcompat_light=0x7f09008a; public static final int platform_v11_appcompat=0x7f090020; public static final int platform_v11_appcompat_light=0x7f090021; public static final int platform_v14_appcompat=0x7f090028; public static final int platform_v14_appcompat_light=0x7f090029; public static final int platform_v21_appcompat=0x7f09008b; public static final int platform_v21_appcompat_light=0x7f09008c; public static final int platform_v25_appcompat=0x7f0900a0; public static final int platform_v25_appcompat_light=0x7f0900a1; public static final int platform_widget_appcompat_spinner=0x7f090022; public static final int preference=0x7f0900dc; public static final int preference_category=0x7f0900dd; public static final int preference_category_material=0x7f0900de; public static final int preference_checkboxpreference=0x7f0900df; public static final int preference_checkboxpreference_material=0x7f0900e0; public static final int preference_dialogpreference=0x7f0900e1; public static final int preference_dialogpreference_edittextpreference=0x7f0900e2; public static final int preference_dialogpreference_edittextpreference_material=0x7f0900e3; public static final int preference_dialogpreference_material=0x7f0900e4; public static final int preference_dropdown=0x7f0900e5; public static final int preference_dropdown_material=0x7f0900e6; public static final int preference_information=0x7f0900e7; public static final int preference_information_material=0x7f0900e8; public static final int preference_material=0x7f0900e9; public static final int preference_preferencescreen=0x7f0900ea; public static final int preference_preferencescreen_material=0x7f0900eb; public static final int preference_seekbarpreference=0x7f0900ec; public static final int preference_switchpreference=0x7f0900ed; public static final int preference_switchpreference_material=0x7f0900ee; public static final int preference_switchpreferencecompat=0x7f0900ef; public static final int preference_switchpreferencecompat_material=0x7f0900f0; public static final int preferencefragment=0x7f090031; public static final int preferencefragment_material=0x7f0900f1; public static final int preferencefragmentlist=0x7f090032; public static final int preferencefragmentlist_material=0x7f090033; public static final int preferencethemeoverlay=0x7f0900f2; public static final int preferencethemeoverlay_v14=0x7f0900f3; public static final int preferencethemeoverlay_v14_material=0x7f0900f4; public static final int preference_textappearancematerialbody2=0x7f0900f5; public static final int preference_textappearancematerialsubhead=0x7f0900f6; public static final int preferencestheme=0x7f0900f7; public static final int rtloverlay_dialogwindowtitle_appcompat=0x7f090034; public static final int rtloverlay_widget_appcompat_actionbar_titleitem=0x7f090035; public static final int rtloverlay_widget_appcompat_dialogtitle_icon=0x7f090036; public static final int rtloverlay_widget_appcompat_popupmenuitem=0x7f090037; public static final int rtloverlay_widget_appcompat_popupmenuitem_internalgroup=0x7f090038; public static final int rtloverlay_widget_appcompat_popupmenuitem_text=0x7f090039; public static final int rtloverlay_widget_appcompat_search_dropdown=0x7f09003a; public static final int rtloverlay_widget_appcompat_search_dropdown_icon1=0x7f09003b; public static final int rtloverlay_widget_appcompat_search_dropdown_icon2=0x7f09003c; public static final int rtloverlay_widget_appcompat_search_dropdown_query=0x7f09003d; public static final int rtloverlay_widget_appcompat_search_dropdown_text=0x7f09003e; public static final int rtloverlay_widget_appcompat_searchview_magicon=0x7f09003f; public static final int rtlunderlay_widget_appcompat_actionbutton=0x7f090040; public static final int rtlunderlay_widget_appcompat_actionbutton_overflow=0x7f090041; public static final int textappearance_appcompat=0x7f0900f8; public static final int textappearance_appcompat_body1=0x7f0900f9; public static final int textappearance_appcompat_body2=0x7f0900fa; public static final int textappearance_appcompat_button=0x7f0900fb; public static final int textappearance_appcompat_caption=0x7f0900fc; public static final int textappearance_appcompat_display1=0x7f0900fd; public static final int textappearance_appcompat_display2=0x7f0900fe; public static final int textappearance_appcompat_display3=0x7f0900ff; public static final int textappearance_appcompat_display4=0x7f090100; public static final int textappearance_appcompat_headline=0x7f090101; public static final int textappearance_appcompat_inverse=0x7f090102; public static final int textappearance_appcompat_large=0x7f090103; public static final int textappearance_appcompat_large_inverse=0x7f090104; public static final int textappearance_appcompat_light_searchresult_subtitle=0x7f090105; public static final int textappearance_appcompat_light_searchresult_title=0x7f090106; public static final int textappearance_appcompat_light_widget_popupmenu_large=0x7f090107; public static final int textappearance_appcompat_light_widget_popupmenu_small=0x7f090108; public static final int textappearance_appcompat_medium=0x7f090109; public static final int textappearance_appcompat_medium_inverse=0x7f09010a; public static final int textappearance_appcompat_menu=0x7f09010b; public static final int textappearance_appcompat_notification=0x7f09002a; public static final int textappearance_appcompat_notification_info=0x7f09008d; public static final int textappearance_appcompat_notification_info_media=0x7f09008e; public static final int textappearance_appcompat_notification_line2=0x7f09010c; public static final int textappearance_appcompat_notification_line2_media=0x7f09010d; public static final int textappearance_appcompat_notification_media=0x7f09008f; public static final int textappearance_appcompat_notification_time=0x7f090090; public static final int textappearance_appcompat_notification_time_media=0x7f090091; public static final int textappearance_appcompat_notification_title=0x7f09002b; public static final int textappearance_appcompat_notification_title_media=0x7f090092; public static final int textappearance_appcompat_searchresult_subtitle=0x7f09010e; public static final int textappearance_appcompat_searchresult_title=0x7f09010f; public static final int textappearance_appcompat_small=0x7f090110; public static final int textappearance_appcompat_small_inverse=0x7f090111; public static final int textappearance_appcompat_subhead=0x7f090112; public static final int textappearance_appcompat_subhead_inverse=0x7f090113; public static final int textappearance_appcompat_title=0x7f090114; public static final int textappearance_appcompat_title_inverse=0x7f090115; public static final int textappearance_appcompat_widget_actionbar_menu=0x7f090116; public static final int textappearance_appcompat_widget_actionbar_subtitle=0x7f090117; public static final int textappearance_appcompat_widget_actionbar_subtitle_inverse=0x7f090118; public static final int textappearance_appcompat_widget_actionbar_title=0x7f090119; public static final int textappearance_appcompat_widget_actionbar_title_inverse=0x7f09011a; public static final int textappearance_appcompat_widget_actionmode_subtitle=0x7f09011b; public static final int textappearance_appcompat_widget_actionmode_subtitle_inverse=0x7f09011c; public static final int textappearance_appcompat_widget_actionmode_title=0x7f09011d; public static final int textappearance_appcompat_widget_actionmode_title_inverse=0x7f09011e; public static final int textappearance_appcompat_widget_button=0x7f09011f; public static final int textappearance_appcompat_widget_button_borderless_colored=0x7f090120; public static final int textappearance_appcompat_widget_button_colored=0x7f090121; public static final int textappearance_appcompat_widget_button_inverse=0x7f090122; public static final int textappearance_appcompat_widget_dropdownitem=0x7f090123; public static final int textappearance_appcompat_widget_popupmenu_header=0x7f090124; public static final int textappearance_appcompat_widget_popupmenu_large=0x7f090125; public static final int textappearance_appcompat_widget_popupmenu_small=0x7f090126; public static final int textappearance_appcompat_widget_switch=0x7f090127; public static final int textappearance_appcompat_widget_textview_spinneritem=0x7f090128; public static final int textappearance_statusbar_eventcontent=0x7f09002c; public static final int textappearance_statusbar_eventcontent_info=0x7f09002d; public static final int textappearance_statusbar_eventcontent_line2=0x7f09002e; public static final int textappearance_statusbar_eventcontent_time=0x7f09002f; public static final int textappearance_statusbar_eventcontent_title=0x7f090030; public static final int textappearance_widget_appcompat_expandedmenu_item=0x7f090129; public static final int textappearance_widget_appcompat_toolbar_subtitle=0x7f09012a; public static final int textappearance_widget_appcompat_toolbar_title=0x7f09012b; public static final int theme_appcompat=0x7f09012c; public static final int theme_appcompat_compactmenu=0x7f09012d; public static final int theme_appcompat_daynight=0x7f090004; public static final int theme_appcompat_daynight_darkactionbar=0x7f090005; public static final int theme_appcompat_daynight_dialog=0x7f090006; public static final int theme_appcompat_daynight_dialog_alert=0x7f090007; public static final int theme_appcompat_daynight_dialog_minwidth=0x7f090008; public static final int theme_appcompat_daynight_dialogwhenlarge=0x7f090009; public static final int theme_appcompat_daynight_noactionbar=0x7f09000a; public static final int theme_appcompat_dialog=0x7f09012e; public static final int theme_appcompat_dialog_alert=0x7f09012f; public static final int theme_appcompat_dialog_minwidth=0x7f090130; public static final int theme_appcompat_dialogwhenlarge=0x7f090131; public static final int theme_appcompat_light=0x7f090132; public static final int theme_appcompat_light_darkactionbar=0x7f090133; public static final int theme_appcompat_light_dialog=0x7f090134; public static final int theme_appcompat_light_dialog_alert=0x7f090135; public static final int theme_appcompat_light_dialog_minwidth=0x7f090136; public static final int theme_appcompat_light_dialogwhenlarge=0x7f090137; public static final int theme_appcompat_light_noactionbar=0x7f090138; public static final int theme_appcompat_noactionbar=0x7f090139; public static final int themeoverlay_appcompat=0x7f09013a; public static final int themeoverlay_appcompat_actionbar=0x7f09013b; public static final int themeoverlay_appcompat_dark=0x7f09013c; public static final int themeoverlay_appcompat_dark_actionbar=0x7f09013d; public static final int themeoverlay_appcompat_dialog=0x7f09013e; public static final int themeoverlay_appcompat_dialog_alert=0x7f09013f; public static final int themeoverlay_appcompat_light=0x7f090140; public static final int widget_appcompat_actionbar=0x7f090141; public static final int widget_appcompat_actionbar_solid=0x7f090142; public static final int widget_appcompat_actionbar_tabbar=0x7f090143; public static final int widget_appcompat_actionbar_tabtext=0x7f090144; public static final int widget_appcompat_actionbar_tabview=0x7f090145; public static final int widget_appcompat_actionbutton=0x7f090146; public static final int widget_appcompat_actionbutton_closemode=0x7f090147; }
app.gradle file
apply plugin: 'com.android.application' android { compilesdkversion 25 buildtoolsversion "25.0.3" defaultconfig { applicationid "com.hello.world" minsdkversion 21 targetsdkversion 25 versioncode 1 versionname "1.0" testinstrumentationrunner "android.support.test.runner.androidjunitrunner" // enabling multidex support. multidexenabled true vectordrawables.usesupportlibrary = true } compileoptions { sourcecompatibility javaversion.version_1_7 targetcompatibility javaversion.version_1_7 } dexoptions { predexlibraries = false javamaxheapsize "4g" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } packagingoptions { exclude 'meta-inf/notice.txt' exclude 'meta-inf/notice' exclude 'meta-inf/notice.txt' exclude 'meta-inf/license.txt' exclude 'meta-inf/license' exclude 'meta-inf/license.txt' } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) androidtestcompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:multidex:1.0.1' compile 'com.android.support:percent:25.3.1' compile 'com.android.support:preference-v7:25.3.1' compile 'com.android.support:preference-v14:25.3.1' compile 'com.github.lawloretienne:trestle:0.0.2' compile 'com.github.marcoscgdev:headerdialog:1.0.3' compile 'com.google.android.gms:play-services-maps:11.0.2' testcompile 'junit:junit:4.12' compile 'com.android.support.constraint:constraint-layout:1.0.2' }
open help
menu , choose edit custom properties
. there can add or edit idea.max.intellisense.filesize
property whatever need, e.g. idea.max.intellisense.filesize=2500
. should let intellisense features while working larger files, name implies.
Comments
Post a Comment