0

I'm trying to develop an Android application based on Material Design. I want to support the pre-Lollipop devices.

I found the AppCompat library and tried to follow guides and tutorials but nothing seemed to work. Most of them are focused on Android Studio while I need to use the Eclipse IDE.

I am following guidance from this post on AppCompat, this post on the Android Material Design support library and this Android Toolbar tutorial

Unfortunately, ActionBarActivity is deprecated. I've tried to "update" my project as shown here.

I don't recive any errors on the Eclipse console, but when I open the app on my Smartphone (Samsung Galaxy Ace 4 with Android 4.4.4) a popup icon appears saying application has unexpectedly quit, and I receive the InvocationTargetException error.

The only solution that works is this, but it does not support pre-Lollipop devices (only API 21 and higher).

I finally tried to use a different support library found here, but I don't know how to use the "Ray's lib" library.

All I want to do is something similar to Google apps that use Material Design on pre-Lollipop devices. Is there any way to do this? Can someone help me?

If I can't on Eclipse, is there a way to do that in Android Studio?

Community
  • 1
  • 1
mcalabresi
  • 37
  • 6

1 Answers1

0

You should use Android Studio as it is the official Android's IDE.

If you are starting a new project, and you want to use material design on pre-lollipop devices stick to the appCompat just include these on your graddle dependecies and use AppCompat components on your project.

compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'

It's important to note that not every material component has backwards compatibility. For some elements you may need to use third party libraries or create your custom components.

Natan
  • 1,867
  • 13
  • 24