Can't open ics-openvpn with android studio in mac

1.2k views Asked by At

I clone OpenVPN project in ics-openvpn. And then I install NDK, CMake, swig(4.0.1), update git ... follow doc/README.txt and I open it with Android studio after that. But when open the project with Android studio I can't see another package in the project.

Here is my result:

enter image description here

How I can fix it to see all the packages and build the project?

Thank you so much!

1

There are 1 answers

11
Mohammad Sommakia On
    flavorDimensions("implementation")
    
    productFlavors {
        create("ui") {
            setDimension("implementation")
            buildConfigField("boolean", "openvpn3", "true")
        }
        create("skeleton") {
            setDimension("implementation")
            buildConfigField("boolean", "openvpn3", "false")
        }
    }
  1. add the module in the dependency in your build.gradle :

implementation project(path: ':your-module-name')

  1. sync the project and it is done :-)

NOTE: if you can not see the module files click on the gradle on the right of android studio and left-click on the openvpn module and choose refresh Gradle project.

I hope it can help someone.