DroidPluginTeam / DroidPlugin

A plugin framework on android,Run any third-party apk without installation, modification or repackage
http://droidpluginteam.github.io/DroidPlugin/
GNU Lesser General Public License v3.0
6.9k stars 2.53k forks source link

Not Able to Build the App (ApiTest) #348

Open JaberJ opened 7 years ago

JaberJ commented 7 years ago

When I try to build the app there is below error in Android Studio:-

Error:Execution failed for task ':Test:ApiTest:compileDebugNdk'.

Error: Your project contains C++ files but it is not using a supported native build system. Consider using CMake or ndk-build integration with the stable Android Gradle plugin: https://developer.android.com/studio/projects/add-native-code.html or use the experimental plugin: https://developer.android.com/studio/build/experimental-plugin.html.

I need to link either CMake or Android.mk file ....But there is no such file in your project tree.

Could you please let me know how to build the project and run it? I want to use plugin feature in my project and it is very urgent.

JaberJ commented 7 years ago

Please reply on the issue ASAP.

yurushao commented 7 years ago

Follow this guide: https://developer.android.com/studio/projects/add-native-code.html

You can install these components using the SDK Manager:

  1. From an open project, select Tools > Android > SDK Manager from the menu bar.
  2. Click the SDK Tools tab.
  3. Check the boxes next to LLDB, CMake, and NDK, as shown in figure 1.
  4. Click Apply, and then click OK in the pop-up dialog.
  5. When the installation is complete, click Finish, and then click OK.