1

를 .png를해야한다, 나는 photothumb.db가 .XML로 끝나야합니다 말 또는오류 : 파일 이름은 .XML로 끝이나 내가 그릴 수로 photothumb.db 선택하지 않은 경우에도

.png 형 오류가 내 profilesmaller 아래 이미지는 png

내 코드입니다 타입이다

다음
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:background="@drawable/profilesmaller" 
    tools:context="charlenebuena.guest.HomeFragment"> 
</FrameLayout> 

내 Gradle을 콘솔 메시지

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':app:mergeDebugResources'. 
> C:\Users\Charlene Marie\AndroidStudioProjects\Guest\app\src\main\res\drawable\photothumb.db: Error: The file name must end with .xml or .png 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

BUILD FAILED 

Total time: 2.72 secs 
,369입니다
+1

변화로 photothumb.db의 위치 자산 폴더에 당김하고 당김에있는 이미지 photothumb 이미지 또는 데이터베이스 파일인지 파일 이름 – Nitesh

+0

를 해결할 것인가? – Vishwa

+0

의 JPG 또는 PNG 확장자를 가지고 있는지 @Char 문제 – Nitesh

답변

1

Android는 드로어 블 리소스로 .png, .jpg, .gif 및 .xml 파일 만 허용합니다. .db 파일을 가지고 있다면 그 파일을 assets 폴더에 넣으십시오.

0

drawable에서 photothumb.db 파일을 자산 디렉토리로 제거하십시오. 자산 디렉토리가 없으면 메인> 새로 만들기> 디렉토리> 자산을 마우스 오른쪽 버튼으로 클릭 한 다음 create.Place에 거기에 파일을 올려 놓으십시오.

-1

이미지 파일 확장자 (예 : ico 등)를 png로 변경하십시오. 작동합니다.

+0

해결 방법이나 해결 방법이 아닌 해결 방법이 있습니다. – fechnert