커맨드 라인 (http://stand.spree.de/wiki_details_maven_archetypes)을 사용하여 Android-Maven 아키 타입 프로젝트를 만들었습니다.ADT 그래픽 편집기에서 Android Maven 아치 유형 프로젝트 레이아웃이 올바르지 않음
이 프로젝트를 ADT로 가져 왔을 때 (그래픽 편집기의 장점을 활용할 수 있도록) 그래픽 편집기에서보기를 올바르게 표시하지 못했습니다.
res/layout에서 자동 생성 된 activity_main.xml의 경우 예상 레이아웃을 표시하지 않습니다. 대신, 불평 : 아래
No resources match the configuration
, , Locale Language ___Region __, Left To Right, sw320dp, w320dp, h533dp, Normal Screen, Long screen aspect ratio, Portrait Orientation, Normal, Day time, High Density, Finger-based touchscreen, Soft keyboard, No keyboard, Exposed navigation, Trackball navigation, Screen resolution 800x480, API Level 18
Change the configuration or create:
res/layout-ldltr-sw320dp-w320dp-h533dp-normal-long-port-notnight-hdpi-finger-keyssoft-nokeys-navexposed-trackball-800x480-v18/activity_main.xml
You can also click the 'Create New...' item in the configuration dropdown menu above.
스크린 샷 :
이 Activity_Main.xml 꽤 똑바로 앞으로 다음과 같습니다 :
여기
프로젝트 디렉토리입니다
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.view.ViewPager
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/activity_main_pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
Project.properties 파일 :
# Project target.
target=android-16
그리고 AndroidManifest를도 간단하다
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.hizz.android"
android:versionCode="1"
android:versionName="1.0-SNAPSHOT" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity android:name=".HelloAndroidActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
나는 그것이 그래픽 편집기에 표시하기 위해 무엇을해야하는지 모르겠습니다.
추가 정보가 필요하면 알려주세요.
방금 maven에서 같은 프로젝트를 설치했는데 모든 것이 잘 작동합니다. 레이아웃/폴더에서 activity_main.xml의 기본 구현을 간단하게 찾아야합니다. Android Development Tools의 최신 버전을 가지고 있는지 확인할 수 있습니까 (Eclipse에서는 'Help -> Check for updates'로 가십시오). –