Android studio not showing all activity templates so need help
-
I am using windows 10. Android studio Koala latest release. Have used Hedgehog and Chipmunk versions. The Chipmunk version gave google maps and settings activity template. For Hedgehog these activity templates disappeared after 3 projects. Now when I have installed Koala it shows only 5 templates. I need the settings template but can't find it in koala and Hedgehog. Is it just me or everyone having this problem. And it its only at my end how do I get the template setting activity. Got stuck in my first new project I have tried uninstalling and reinstalling the Koala and Hedgehog versions but no change. Problem persists
-
I am using windows 10. Android studio Koala latest release. Have used Hedgehog and Chipmunk versions. The Chipmunk version gave google maps and settings activity template. For Hedgehog these activity templates disappeared after 3 projects. Now when I have installed Koala it shows only 5 templates. I need the settings template but can't find it in koala and Hedgehog. Is it just me or everyone having this problem. And it its only at my end how do I get the template setting activity. Got stuck in my first new project I have tried uninstalling and reinstalling the Koala and Hedgehog versions but no change. Problem persists
Hi Preeti, Can you try these solutions Update Android Studio: Ensure you have the latest version installed. Check Plugins: Go to File > Settings > Plugins and ensure relevant plugins are enabled. Reset IDE Settings: Go to File > Manage IDE Settings > Restore Default Settings to reset Android Studio. Manually Create a Settings Screen: Create a new empty activity: File > New > Activity > Empty Activity and name it SettingsActivity. Add a PreferenceFragmentCompat to manage your settings:
public class SettingsActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getSupportFragmentManager().beginTransaction()
.replace(android.R.id.content, new SettingsFragment())
.commit();
}public static class SettingsFragment extends PreferenceFragmentCompat { @Override public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { setPreferencesFromResource(R.xml.preferences, rootKey); } }
}
I hope this will work for you and resolve your issue....... .:)
-
I am using windows 10. Android studio Koala latest release. Have used Hedgehog and Chipmunk versions. The Chipmunk version gave google maps and settings activity template. For Hedgehog these activity templates disappeared after 3 projects. Now when I have installed Koala it shows only 5 templates. I need the settings template but can't find it in koala and Hedgehog. Is it just me or everyone having this problem. And it its only at my end how do I get the template setting activity. Got stuck in my first new project I have tried uninstalling and reinstalling the Koala and Hedgehog versions but no change. Problem persists
well i think this issue may be due to changes in the latest versions. reset your Android Studio settings.