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

Proguard issue: Warning: can't find referenced method 'android.net.Network getNetwork()' #34

Closed
patelviraj opened this Issue Jun 25, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@patelviraj

patelviraj commented Jun 25, 2018

Warning:androidx.work.impl.background.systemjob.SystemJobService: can't find referenced method 'android.net.Network getNetwork()' in library class android.app.job.JobParameters

@WiMank

This comment has been minimized.

Show comment
Hide comment
@WiMank

WiMank Jun 25, 2018

I have a similar problem.

WiMank commented Jun 25, 2018

I have a similar problem.

@zNoobs

This comment has been minimized.

Show comment
Hide comment
@zNoobs

zNoobs Jun 28, 2018

Me too, it's in androidx\work\impl\background\systemjob\SystemJobService.java, l101:

if (Build.VERSION.SDK_INT >= 28) {
    runtimeExtras.network = params.getNetwork();
}

You can ignore this warning by adding "-ignorewarnings" in your proguard file config.
Or you can, and I think it's the best solution, target/compile with the SDK 28.

zNoobs commented Jun 28, 2018

Me too, it's in androidx\work\impl\background\systemjob\SystemJobService.java, l101:

if (Build.VERSION.SDK_INT >= 28) {
    runtimeExtras.network = params.getNetwork();
}

You can ignore this warning by adding "-ignorewarnings" in your proguard file config.
Or you can, and I think it's the best solution, target/compile with the SDK 28.

@patelviraj

This comment has been minimized.

Show comment
Hide comment
@patelviraj

patelviraj Jun 28, 2018

Increasing compileSdkVersion to 28 and updating the Support Libraries to a 28.x.x version solved the issue.
Current Support Library is: 28.0.0-alpha3
Please check this link: https://issuetracker.google.com/issues/110561160

patelviraj commented Jun 28, 2018

Increasing compileSdkVersion to 28 and updating the Support Libraries to a 28.x.x version solved the issue.
Current Support Library is: 28.0.0-alpha3
Please check this link: https://issuetracker.google.com/issues/110561160

@patelviraj patelviraj closed this Jun 28, 2018

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