Programing/Debugging [JAVA/Android] Array constants can only be used in initializers by CtrlCV맨 2015. 2. 25. [Problem] String[] command = new String[6]; if(.....) { command = {"adb", "-s", serial, type, inputfile, outputfile}; } >> Array constants can only be used in initializers[Solution] String[] command; if(.....) { command = new String[]{"adb", "-s", serial, type, inputfile, outputfile}; } 좋아요3공유하기 URL 복사카카오톡 공유페이스북 공유엑스 공유 게시글 관리 구독하기Ctrl+C Ctrl+V 저작자표시 비영리 변경금지 'Programing > Debugging' 카테고리의 다른 글 [JAVA] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException (0) 2015.04.09 java was started but returned exit code=13 (0) 2015.03.20 [Android/안드로이드] android.content.ReceiverCallNotAllowedException (0) 2015.01.08 [Android/안드로이드] java.lang.RuntimeException: Unable to instantiate activity (0) 2015.01.05 [Android] Dialog.dismiss()를 할 때, java.lang.IllegalArgumentException: View not attached to window manager 예외 회피하기 (0) 2014.09.18 관련글 [JAVA] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException java was started but returned exit code=13 [Android/안드로이드] android.content.ReceiverCallNotAllowedException [Android/안드로이드] java.lang.RuntimeException: Unable to instantiate activity Ctrl+C Ctrl+V복잡한 세상, 핵심만 쏙쏙! 당신의 지적 욕구를 충족시켜 줄 블로그.구독하기