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
Can't find method 'requestRouteToHost(int,int)' in class android.net.ConnectivityManager targeting SDK version 26 #633
Comments
Anyway, you can suppress the warning adding this in ProGuard rules: -dontwarn org.osmdroid.tileprovider.modules.NetworkAvailabliltyCheck |
You may also need my apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "com.github.paolorotolo.osmtest"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:26.0.0-beta2'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'org.osmdroid:osmdroid-android:5.6.5' |
thanks for the tip. i'll add it to our sample pro guard file |
Apparently, ConnectivityManager.requestRouteToHost was *removed* from the source code in API level 26. This might cause problems on Android O, and adding a dontwarn to ProGuard isn't really the ideal solution. Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Well, the |
… android.net.ConnectivityManager targeting SDK version 26
just committed the change and updated the snapshots |
Great, thanks. |
I'm unable to build an APK with ProGuard enabled targeting Android O SDK version (targetSdkVersion 26).
Log:
The text was updated successfully, but these errors were encountered: