-1

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!

1
  • The temporary "solution" I found was to create a "No activity" project and then add the activities... not the best way, but the only way I found hahaha I'm still looking for a solution, if there is one... Commented Nov 1, 2023 at 21:22

1 Answer 1

0

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>
Sign up to request clarification or add additional context in comments.

3 Comments

Yeah, I did this process... but there used to be a template...
For New Version We don't have option like previous version.
Which is weird... I know google is "killing" java, so it makes sense they remove views... but there isnt even the "watch face" option showing... I still think I'm missing something

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.