Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated Android Support Library with Android 8.0 devices with Eclipse SDK #674

Closed
trungnn307 opened this issue Nov 29, 2018 · 5 comments
Closed

Comments

@trungnn307
Copy link

trungnn307 commented Nov 29, 2018

Description:

Outdated Android Support Library with Android 8.0 (and above) devices with Eclipse SDK

Environment

  1. What version of the Android SDK are you using? Eclipse + Sample's targetSDK27
  2. How did you add the SDK to your project (eg. maven) I use the lastest OneSignal Eclipse sample in 3.10.3 Release

Steps to Reproduce Issue:

  1. Add the OneSignal SDK to your project
  2. Place your App ID in the application's gradle file
  3. When i got this warning, the device is not marked as outdated support library. Otherwise device always marked as outdated. One sample just keep install and uninstall then sometime it got warning
    i tried with Mi A2 device and Google pixel and both were not working

Anything else:
I attach OneSignalSample with lastest working google_play_service in here. This is working since the last issue i reported here

(crash stacktraces, as well as any other information here)

@jkasten2
Copy link
Member

jkasten2 commented Dec 2, 2018

@trungnguyennam I highly recommend switching to Android Studio when you can. Google no longer provides .jar files directly for the latest versions of their libraries, instead they are .aar files. As well as their build tools are no longer being updated for Eclipse.

The error means your Android Support Library is out of date. You will need to use 27.0.0 or newer since you are using targetSDK 27. Google split the library into parts in revision 24 so you may need to download each part. The one needed for OneSignal is support-compat
https://mvnrepository.com/artifact/com.android.support/support-compat/28.0.0
You can download and extract the .jar file from the .aar file.

@trungnn307
Copy link
Author

trungnn307 commented Dec 4, 2018

@trungnguyennam I highly recommend switching to Android Studio when you can. Google no longer provides .jar files directly for the latest versions of their libraries, instead they are .aar files. As well as their build tools are no longer being updated for Eclipse.

The error means your Android Support Library is out of date. You will need to use 27.0.0 or newer since you are using targetSDK 27. Google split the library into parts in revision 24 so you may need to download each part. The one needed for OneSignal is support-compat
https://mvnrepository.com/artifact/com.android.support/support-compat/28.0.0
You can download and extract the .jar file from the .aar file.

Thanks for response. I understand that Google no longer support Eclipse so there are many related issue. But OneSignal still support Eclipse so i assume that example should be working. The targetSDK27 is in original example so the support-v4 jar in example should be working too. I will try to update supportv28 jar and report you later

@jkasten2
Copy link
Member

jkasten2 commented Dec 4, 2018

@trungnguyennam We will look into updating our Eclipse example. Google is moving from the Android Support Library to AndroidX. We plan to drop support for Eclipse when we switch to this new library.

@trungnn307
Copy link
Author

@jkasten2 i had tried to update support-compat v28 and v27.1.1 but i still got outdated device. If i remove support-compat.jar, i will get support library missing. So i think im doing the right thing. Do you have any suggestion?

@jkasten2
Copy link
Member

@trungnguyennam The issue is related to get those components of the Android Support library setup with your project and isn't a specific issue with OneSignal itself. Google doesn't have any docs on getting these versions of their library setup with ANT or Eclipse.

We have decided to drop support for ANT and Eclipse builds now so sorry we won't be able to help further with this setup issue until you can switch to a Gradle or Android Studio build.

Once you switch over and are still running into any integration issues please open new github issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants