0

I'm a new in android development. So I'm trying to create an application managing Wifi Hotspot on android 9.

So, I'm trying to implement this code https://github.com/aegis1980/WifiHotSpot/blob/master/app/src/main/java/com/fitc/wifihotspot/MyOreoWifiManager.java according this solution How to turn on/off wifi hotspot programmatically in Android 8.0 (Oreo)

But import com.android.dx.stock.ProxyBuilder trows Android studio error: package com.android.dx.stock does not exist

How to import this package in the project?

slv_p
  • 3
  • 2

1 Answers1

0

Add this to your dependencies in build.gradle:

    implementation 'com.linkedin.dexmaker:dexmaker:2.25.0'

ProxyBuilder class is part of this library so you need to add it to your project first before you can use it.

The error: com.android.dx.stock does not exist means that the package you are trying to access is not part of your code. This usually only happens when you don't add required dependencies to your project.

Zohaib Amir
  • 3,482
  • 2
  • 11
  • 29