<div>클래스에 대해서 오류가 나는데</div> <div><br></div> <div>InstantiationException : has no zero Argument Constructor</div> <div><br></div> <div>해당 오류가 발생합니다. </div> <div><br></div> <div>클래스 생성자의 인자가 없으면 안된다 뭐 이런 얘기 같은데..</div> <div><br></div> <div>클래스 와 생성자 부분을 가져오면</div> <div><br></div> <div><pre style="font-family:'Courier New';font-size:9pt;"><span style="color:#000080;font-weight:bold;">public class </span>SQLiteAssistant <span style="color:#000080;font-weight:bold;">extends </span><span style="background-color:#e4e4ff;">SQLiteOpenHelper</span></pre></div> <div><pre style="font-size:9pt;font-family:'Courier New';"><span style="color:#000080;font-weight:bold;">public </span>SQLiteAssistant(Context context)<br>{<br><span style="color:#000080;font-weight:bold;">super</span>(context, <span style="color:#660e7a;font-weight:bold;font-style:italic;">DB_NAME</span>, <span style="color:#000080;font-weight:bold;">null</span>, <span style="color:#660e7a;font-weight:bold;font-style:italic;">DB_VERSION_NUMBER</span>);<br>}</pre><pre style="font-size:9pt;font-family:'Courier New';">이렇게 되고</pre><pre style="font-size:9pt;font-family:'Courier New';"><br></pre><pre style="font-size:9pt;font-family:'Courier New';">다른 클래스에서</pre><pre style="font-size:9pt;font-family:'Courier New';"><br></pre><pre style="font-size:9pt;font-family:'Courier New';"><span style="color:#000080;font-weight:bold;">private </span>SQLiteAssistant <span style="color:#660e7a;font-weight:bold;">mainActivity</span>;</pre><pre style="font-size:9pt;font-family:'Courier New';"><br></pre><pre style="font-size:9pt;font-family:'Courier New';"><br></pre><pre style="font-size:9pt;font-family:'Courier New';">이렇게 선언해서 사용하고 있습니다.</pre><pre style="font-size:9pt;font-family:'Courier New';"><br></pre><pre style="font-size:9pt;font-family:'Courier New';">SQLiteAassistant 클래스에 대한 오류가 위에서 말씀드린 것 처럼 발생하는건데..</pre><pre style="font-size:9pt;font-family:'Courier New';"><br></pre><pre style="font-size:9pt;font-family:'Courier New';">왜 발생하는 걸까요?</pre><pre style="font-size:9pt;font-family:'Courier New';"><br></pre></div>
다크나이트
소드마스터
데몬슬레이어 
스트라이커 
스트리트파이터 
그래플러
레인저 
런처  
엘레멘탈바머 
블러드 메이지 
엘레멘탈마스터 
소환사 
배틀메이지 
마도학자 
크리에이터 
홀리오더
인파이터 
퇴마사 
미스트리스 
사령술사 
쿠노이치 
섀도우 댄서 
엘븐나이트 
카오스 
듀얼리스트
이상 광부 수리비 / 시간대효율 문제로 육성하지 않은 캐릭
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.