Skip to content

Commit

Permalink
1. fix sample compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
shwenzhang committed Jan 5, 2017
1 parent 3fdaead commit 5cb5dd0
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,16 @@ public void onClick(View v) {
loadLibraryButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//for lib/armeabi, just use TinkerInstaller.loadLibrary
TinkerInstaller.loadArmLibrary(getApplicationContext(), "stlport_shared");
// #method 1, hack classloader library path
TinkerLoadLibrary.installNavitveLibraryABI(getApplicationContext(), "armeabi");
System.loadLibrary("stlport_shared");

// #method 2, for lib/armeabi, just use TinkerInstaller.loadLibrary
// TinkerLoadLibrary.loadArmLibrary(getApplicationContext(), "stlport_shared");

// #method 3, load tinker patch library directly
// TinkerInstaller.loadLibraryFromTinker(getApplicationContext(), "assets/x86", "stlport_shared");

}
});

Expand Down

0 comments on commit 5cb5dd0

Please sign in to comment.