안녕하세요 이제 삐약삐약대는 학생입니다 <div>다름아니라 제가 안드로이드 그림판앱을 하나 개발하고 있는데 막히는 부분이 있어서요....</div> <div>제목과 같이 corresponding method로 시작되는 에러입니다.</div> <div><div><br></div> <div>Corresponding method handler 'public void paintClicked(android.view.View)' not found</div> <div><br></div> <div>Issue: Ensures that onClick attribute values refer to real methods</div> <div>Id: OnClick</div> <div><br></div> <div>The onClick attribute value should be the name of a method in this View's context to invoke when the view is clicked. This name must correspond to a public method that takes exactly one parameter of type View.</div> <div><br></div> <div>Must be a string value, using '\;' to escape characters such as '\n' or '\uxxxx' for a unicode character.</div> <div><br></div></div> <div>에러메세지입니다.</div> <div>대충보면 부합된는 메소드 핸들러가 없다는것 같은데 구글링을 해도 모르겠어여......</div> <div>stack overflow라는 영문 사이트에서는</div> <div><br></div> <div><span style="color:#222222;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:15px;line-height:19.5px;">The solution is to get rid of the string resource and to put the method name in the </span><code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;white-space:pre-wrap;color:#222222;background-color:#eeeeee;">android:onClick</code><span style="color:#222222;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:15px;line-height:19.5px;">attribute directly.</span></div> <div><span style="color:#222222;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:15px;line-height:19.5px;"><br></span></div> <div><span style="color:#222222;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:15px;line-height:19.5px;">이라고 스트링 리소스를 제거하고 android:onclick의 메소드 이름을 뭐 어찌 붙여라? 이런말인거 같은데 스트링 리소스를 어찌 만져야 할지, 어떻게 수정을 해야할지 전혀 감이 안잡여요.....</span></div> <div><span style="color:#222222;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:15px;line-height:19.5px;"><br></span></div> <div><span style="color:#222222;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:15px;line-height:19.5px;"><br></span></div> <div><font color="#222222" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size:15px;line-height:19.5px;"> 엑티비티_메인.xml파일의 빨간부분에 에러가 뜹니다.</span></font></div> <div><font color="#222222" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size:15px;line-height:19.5px;">이건 그림판아래에 색을 클릭해서 바꿀수있게 만든 코드인데 얘를 통째로 지워야 할까요??8ㅅ8</span></font></div> <div><font face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size:15px;line-height:19.5px;"></span></font><div style="color:#222222;"><ImageButton</div> <div style="color:#222222;"><span class="Apple-tab-span" style="white-space:pre;"> </span> android:layout_width="@dimen/large_brush"</div> <div style="color:#222222;"><span class="Apple-tab-span" style="white-space:pre;"> </span> android:layout_height="@dimen/large_brush"</div> <div style="color:#222222;"><span class="Apple-tab-span" style="white-space:pre;"> </span> android:layout_margin="2dp"</div> <div style="color:#222222;"><span class="Apple-tab-span" style="white-space:pre;"> </span> android:background="#FF000000"</div> <div style="color:#222222;"><span class="Apple-tab-span" style="white-space:pre;"> </span> android:contentDescription="@string/paint"</div> <div><span class="Apple-tab-span" style="color:#222222;white-space:pre;"> </span><font color="#222222"> </font><font color="#ff0000">android:onClick="paintClicked"</font></div> <div style="color:#222222;"><span class="Apple-tab-span" style="white-space:pre;"> </span> android:src="@drawable/paint"</div> <div style="color:#222222;"><span class="Apple-tab-span" style="white-space:pre;"> </span> android:tag="#FF000000" /></div> <div style="color:#222222;"><br></div> <div style="color:#222222;">부디 도와주시면 정말 감사하겠습니다.....ㅠㅠ</div></div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.