반응형

안드로이드스튜디오에러 20

안드로이드 스튜디오 웹뷰 화면 깨짐 css 인식

안드로이드 스튜디오 웹뷰 화면 깨짐 css 인식 하이브리드 앱을 만드는데... 앱을 실행하니 왠일..화면이 깨진다. css 를 인식하지 못하는 현상이 발생했습니다.webView.getSettings().setUseWideViewPort(true); webView.getSettings().setLoadWithOverviewMode(true); 위 두 코드를 넣어주면 됩니다. 이제 웹뷰 만들때 webView = (WebView) findViewById(R.id.webView); webView.setWebViewClient(new WebViewClient()); //새창 열기 없이 웹뷰내에서 다시 열기 webView.getSettings().setUseWideViewPort(true); webView.getS..

IT/안드로이드 2017.01.13

values-v23.xml Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Mate..

D:\android\tps\apt\build\intermediates\res\merged\debug\values-v23\values-v23.xmlError:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.Error:(34) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.Error:(4) Error retrieving parent for i..

IT/안드로이드 2017.01.13

Error:Execution failed for task ':apt:processDebugManifest'. > Manifest merger failed : Attribute application@icon value=(@drawable/ic_apt) from AndroidManifest.xml:34:3-34 is also present at [tps:sowtLib:unspecified] AndroidManifest.xml:13:9-45 value=..

이번에도 에러 입니다. Error:Execution failed for task ':apt:processDebugManifest'.> Manifest merger failed : Attribute application@icon value=(@drawable/ic_apt) from AndroidManifest.xml:34:3-34is also present at [tps:sowtLib:unspecified] AndroidManifest.xml:13:9-45 value=(@drawable/ic_launcher).Suggestion: add 'tools:replace="android:icon"' to element at AndroidManifest.xml:32:2-69:16 to override. 이와 같은 ..

IT/안드로이드 2017.01.13

안드로이드 스튜디오 error: unreported exception UnsupportedEncodingException; must be caught or declared to be thrown

error: unreported exception UnsupportedEncodingException; must be caught or declared to be thrown error: unreported exception UnsupportedEncodingException; 안드로이드도 자바기반으로 프로그램 합니다.위와 같은 에러가 발생할 경우 exception 처리를 해주면 되는데요아래와 같이 try{} catch{}를 이용해서 catch 안에 exception 에러에 나와 있는 예외처리를 해주면 해결 됩니다.try { //코딩 로직 넣기//코딩 로직 넣기//코딩 로직 넣기//코딩 로직 넣기//코딩 로직 넣기//코딩 로직 넣기 }catch(UnsupportedEncodingException e){ ..

IT/안드로이드 2017.01.11

안드로이드 스튜디오 java.lang.StackOverflowError: stack size 8MB

java.lang.StackOverflowError: stack size 8MB 위와 같은 에러가 발생하네요.스택 사이즈 8메가 이러죠.. 스택 사이즈가 모자라다는 것이라면 스택 사이즈를 늘려주면 되겠네요. 하지만 그것이 해결 책은 아니에요. 이것은 무엇인가 스택에 계속적인 데이터를 저장한다는 것이에요 무한루프를 돌고 있다는 것이죠. 끝나지 않은... java.lang.StackOverflowError: stack size 8MBjava.lang.StackOverflowError: stack size 8MB무한루프 돌고 있는 부분을 찾아서 해결해주시면되요. 안드로이드 강좌도 포스팅을 해야 하나.. 실력이 하수라서.. 에러 해결책만 올리네요.

IT/안드로이드 2017.01.11

안드로이드 스튜디오 java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/os/BuildCompat

안드로이드 스튜디오 java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/os/BuildCompat 위 에러는 build.gradle -> compile 'com.android.support:appcompat-v7:24.2.1'위 코드를 추가함으로써 해결 할 수 있습니다. 아마 기본에 다른 것이 있을 수 있어요. dependencies { compile 'com.android.support:appcompat-v7:24.2.1'}안드로이드 스튜디오 java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/os/BuildCompat 안드로이드 스튜디오 ja..

IT/안드로이드 2016.12.29

안드로이드 스튜디오 ActivityNotFoundException: Unable to find explicit activity class

안드로이드 스튜디오 ActivityNotFoundException: Unable to find explicit activity class java폴더에 activity파일(.java 자바파일)을 만들었으나 AndroidManifest.xml에 activity를 추가 하지 않았을 경우 발생합니다. AndroidManifest.xml 안에 위 와 같이 넣어주면 됩니다. 당연 안에 넣어줘야 합니다. 프로그램을 잘 만들기 위해서는 에러 대처능력이 좋아야 합니다. 이 놈에 에러 때문에 많은 시간을 허비하게 되죠. 안드로이드 관련 포스팅은 에러 위주로 많이 할 것입니다. 안드로이드 스튜디오 ActivityNotFoundException: Unable to find explicit activity class 안드로이..

IT/안드로이드 2016.12.29

안드로이드 스튜디오 Error:Execution failed for task ':app:mergeDebugResources'.

안드로이드 스튜디오 Error:Execution failed for task ':app:mergeDebugResources'. 안드로이드 어플 소스를 컴파일 하려니 위와 같은 에러가 발생할 경우 에러 문구를 보면 이미지파일명.png 가 있습니다. 그 파일을 포토샵 같은 툴로 엽니다. 기존 파일은 삭제 하고 같은 파일명으로 저장합니다. 그럼 에러가 해결 됩니다. 오늘도 안드로이드에서 발생하는 에러를 처리하네요 ^^안드로이드 스튜디오 Error:Execution failed for task ':app:mergeDebugResources'.안드로이드 스튜디오 Error:Execution failed for task ':app:mergeDebugResources'.

IT/안드로이드 2016.12.28

안드로이드 스튜디오 package name is not set to a valid package name

안드로이드 스튜디오 package name is not set to a valid package name 안드로이드 개발 하면서 이렇게 에러가 많이 나올지는 몰랐네요.. 새로운 activity를 만들려고 하니 에러가 발생하네요 Package name is not set to a valid package name 에러가 발생하면서 activity를 만들 수가 없어요이것은 현재 개발 중인 package name을 넣어주면 해결 됩니다어디에?위 이미지에 보면 Package name 에 패키지명을 넣어주세요.셀렉트 박스를 선택해도 나타나지 않을 수도 있어요그냥 타이핑으로 넣어주면 됩니다.

IT/안드로이드 2016.12.27

안드로이드 스튜디오 Failed to find '?attr/textEditSuggestionItemLayout' in current theme

안드로이드 스튜디오 Failed to find '?attr/textEditSuggestionItemLayout' in current theme 이번에도 에러 해결 방법입니다. 위 와 같이 에러가 발생할 경우 File -> invalidate Caches/Restart 를 해줍니다.Invalidate Caches/Restart 보이시죠? 그럼 안드로이드스튜디오가 재실행 됩니다. 에러가 발생한 layout을 선택해주셔야 해요.저는 activity_main.xml에서 에러가 발생 했습니다.디자인 모드에서 layout을 선택위 이미지를 보면 AppTheme을 바뀌어 있지만 보통 Theme 으로 되어 있습니다.클릭합니다. 왼쪽에서 Project Themes 클릭 오른쪽에서 AppTheme 클릭 후 ok 버튼을 클..

IT/안드로이드 2016.12.27
반응형