2016-03-19 15 views
0

ここに画像の説明を入力してください。Androidのスタジオを起動して実行することはできません。こんにちは世界のような簡単なプログラムを実行することさえできません。私はレンダリングの問題を続けています。 API間を行き来するとAPI10に戻ったときにクリアされ、また戻ってくることがあります。API10を使用したいのは、これがプラットフォームの多くでサポートされるためです。Androidレンダリングの問題

[AndroidStudioレンダリング] [1]ここ

はContent.xmlが

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res 
xmlns:app="http://schemas.android.com/apk/res-auto" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:paddingBottom="@dimen/activity_vertical_margin" 
android:paddingLeft="@dimen/activity_horizontal_margin" 
android:paddingRight="@dimen/activity_horizontal_margin" 
android:paddingTop="@dimen/activity_vertical_margin" 
app:layout_behavior="@string/appbar_scrolling_view_behavior" 
tools:context="com.voxstudios.tryagain.whatda" 
tools:showIn="@layout/activity_whatda"> 

<TextView 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:text="Hello youtube" 
    tools:ignore="HardcodedText" 
    android:textSize="@android:dimen/app_icon_size" /> 

とActivity.xmlファイル

<?xml version="1.0" encoding="utf-8"?> 

xmlns:app="http://schemas.android.com/apk/res-auto" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:fitsSystemWindows="true" 
tools:context="com.voxstudios.tryagain.whatda"> 

<android.support.design.widget.AppBarLayout 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:theme="@style/AppTheme.AppBarOverlay"> 

    <android.support.v7.widget.Toolbar 
     android:id="@+id/toolbar" 
     android:layout_width="match_parent" 
     android:layout_height="?attr/actionBarSize" 
     android:background="?attr/colorPrimary" 
     app:popupTheme="@style/AppTheme.PopupOverlay" /> 

</android.support.design.widget.AppBarLayout> 

<include layout="@layout/content_whatda" /> 

<android.support.design.widget.FloatingActionButton 
    android:id="@+id/fab" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_gravity="bottom|end" 
    android:layout_margin="@dimen/fab_margin" 
    android:src="@android:drawable/ic_dialog_email" /> 

</android.support.design.widget.CoordinatorLayout> 

とマニフェストファイルです。 xmlファイル

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.voxstudios.tryagain"> 

<application 
    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:supportsRtl="true" 
    android:theme="@style/AppTheme"> 
    <activity 
     android:name=".whatda" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme.NoActionBar"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
</application> 

</manifest> 

私は[2]

ので、任意の助けが

をにappriciatedされたAndroidに合計noobのだ[AndroidStudio画像] [2]:!http://i.stack.imgur.com/VP8W8.png

答えて

0
  • 時にはそれが上をクリックすると便利です"ファイル"、 "キャッシュを無効/再起動"
  • Androidスタジオの安定版を使用して、バグでないことを確認してください。
関連する問題