skip to Main Content

I got the Android Studio Giraffe installed on a new computer… While trying to create a new project it doesnt show me the options for creating a view project like the previous version (or choose the language), only "compose for wear os"…

enter image description here

enter image description here

What am I missing?? For other kinds of devices it shows…

Thanks!

2

Answers


  1. You have selected Wear OS section so Android Studio only shows Wear OS templates. you have to select phones and tablets and then select Empty Views Activity. You will be able to create a project in such a way.

    preview

    Login or Signup to reply.
  2. If you want to create a new project with wear os then select No activity and after that create an Empty Views Activity enter image description here with the image and add the below code to the manifest file.

    <uses-feature android:name="android.hardware.type.watch" />
    
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    
    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/Theme.Nav" >
        <activity
            android:name="com.wear.mobileapp.NewActivity"
            android:exported="true" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
    
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    
        <uses-library
            android:name="com.google.android.wearable"
            android:required="true" />
    
        <meta-data
            android:name="com.google.android.wearable.standalone"
            android:value="true" />
    </application>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search