Hoa.Tran
Hoa.Tran

Reputation: 935

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

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!

Upvotes: 1

Views: 1392

Answers (1)

Mohammad Sommakia
Mohammad Sommakia

Reputation: 1833

    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.

Upvotes: 5

Related Questions