마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

안드로이드 디자인 프리뷰 렌더링 문제

0 추천

java.lang.reflect.InvocationTargetException

at jdk.internal.reflect.GeneratedMethodAccessor2137.invoke(Unknown Source)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at android.view.BridgeInflater.lambda$createViewFromCustomInflater$0(BridgeInflater.java:259)

at android.view.BridgeInflater.createViewFromCustomInflater(BridgeInflater.java:285)

at android.view.BridgeInflater.onCreateView(BridgeInflater.java:122)

at android.view.LayoutInflater.onCreateView(LayoutInflater.java:928)

at android.view.LayoutInflater.onCreateView(LayoutInflater.java:948)

at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1002)

at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:309)

at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)

at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:1121)

at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:1095)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)

at android.view.LayoutInflater.inflate(LayoutInflater.java:680)

at android.view.LayoutInflater.inflate(LayoutInflater.java:499)

at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:354)

at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:431)

at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:141)

at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:710)

at com.android.tools.idea.rendering.RenderTask.lambda$inflate$6(RenderTask.java:865)

at com.android.tools.idea.rendering.RenderExecutor$runAsyncActionWithTimeout$2.run(RenderExecutor.kt:174)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

at java.base/java.lang.Thread.run(Thread.java:834)

Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:47)

at java.base/java.lang.String.charAt(String.java:693)

at android.content.res.BridgeTypedArray.getType(BridgeTypedArray.java:1024)

at android.content.res.BridgeTypedArray.getType(BridgeTypedArray.java:809)

at android.content.res.BridgeTypedArray.getValue(BridgeTypedArray.java:778)

at android.content.res.BridgeTypedArray.peekValue(BridgeTypedArray.java:847)

at android.view.View.<init>(View.java:5951)

at android.widget.TextView.<init>(TextView.java:996)

at android.widget.EditText.<init>(EditText.java:87)

at android.widget.AutoCompleteTextView.<init>(AutoCompleteTextView.java:229)

at android.widget.AutoCompleteTextView.<init>(AutoCompleteTextView.java:202)

at android.widget.AutoCompleteTextView.<init>(AutoCompleteTextView.java:181)

at androidx.appcompat.widget.AppCompatAutoCompleteTextView.<init>(AppCompatAutoCompleteTextView.java:76)

at androidx.appcompat.widget.AppCompatAutoCompleteTextView.<init>(AppCompatAutoCompleteTextView.java:71)

at androidx.appcompat.app.AppCompatViewInflater.createAutoCompleteTextView(AppCompatViewInflater.java:240)

at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:151)

... 26 more

무엇이 원인일까요?

 

이그명 (380 포인트) 님이 5월 31일 질문

1개의 답변

0 추천
 
채택된 답변
AutoCompleteTextView 뷰에 포함된 특정 프로퍼티의 값이 비어있는 채로

추가 돼 있어서 지우고 나니 해결됐습니다.
이그명 (380 포인트) 님이 5월 31일 답변
이그명님이 5월 31일 수정
...