Programing/Debugging [JAVA/Android] Array constants can only be used in initializers by CtrlCV맨 2015. 2. 25. 728x90 [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}; } 728x90 공유하기 게시글 관리 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