Tencent/tinker · error · TinkerRuntimeException
libName or appLike is null!
Error message
libName or appLike is null!
What it means
Error "libName or appLike is null!" thrown in Tencent/tinker.
Source
Thrown at tinker-android/tinker-android-lib/src/main/java/com/tencent/tinker/lib/library/TinkerLoadLibrary.java:79
Tinker tinker = Tinker.with(context);
if (tinker.isEnabledForNativeLib()) {
if (TinkerLoadLibrary.loadLibraryFromTinker(context, "lib/armeabi", libName)) {
return;
}
}
System.loadLibrary(libName);
}
/**
* The same as {@link #loadArmLibrary(Context, String)} but it can be called before
* calling {@link TinkerInstaller#install}
* @param appLike
* @param libName
*/
public static void loadArmLibraryWithoutTinkerInstalled(ApplicationLike appLike, String libName) {
if (libName == null || libName.isEmpty() || appLike == null) {
throw new TinkerRuntimeException("libName or appLike is null!");
}
if (TinkerApplicationHelper.isTinkerEnableForNativeLib(appLike)) {
if (TinkerApplicationHelper.loadLibraryFromTinker(appLike, "lib/armeabi", libName)) {
return;
}
}
System.loadLibrary(libName);
}
/**
* you can use TinkerInstaller.loadArmV7Library replace your System.loadLibrary for auto update library!
* only support auto load lib/armeabi-v7a library from patch.
* for other library in lib/* or assets,
* you can load through {@code TinkerInstaller#loadLibraryFromTinker}
*/
public static void loadArmV7Library(Context context, String libName) {
if (libName == null || libName.isEmpty() || context == null) {
throw new TinkerRuntimeException("libName or context is null!");View on GitHub (pinned to 1b7ea02c23)
Solutions
- Pass a non-null library name and a non-null ApplicationLike to TinkerLoadLibrary.loadLibraryFromTinker.
- Fetch the ApplicationLike via TinkerApplicationHelper after Tinker is installed, not before.
When it happens
Trigger: Thrown at tinker-android/tinker-android-lib/src/main/java/com/tencent/tinker/lib/library/TinkerLoadLibrary.java:79 when the library encounters an invalid state.
Common situations: Thrown from TinkerLoadLibrary when libName or appLike is null. Typically caused by calling the library loader before Tinker installation completed.
AI-assisted analysis of Tencent/tinker@1b7ea02c23 (2026-08-14).
Data as JSON: /api/errors/52700e5e4ccb6894.
Report an issue: GitHub.