diff --git a/uni_modules/uts-animation-view/utssdk/app-android/index.vue b/uni_modules/uts-animation-view/utssdk/app-android/index.vue index 8a64c41b0962760287011ef8720d38dfe80e2d52..2db7de05ace2e7ca42368d7f2c14c12ca6b304ca 100644 --- a/uni_modules/uts-animation-view/utssdk/app-android/index.vue +++ b/uni_modules/uts-animation-view/utssdk/app-android/index.vue @@ -96,7 +96,7 @@ // 正式打包会放在asset中,需要特殊处理 let realJsonPath = UTSAndroid.getResourcePath(newPath) if(realJsonPath.startsWith("/android_asset")){ - lottieAnimationView.setAnimation(realJsonPath!.substring(15)) + lottieAnimationView.setAnimation(realJsonPath.substring(15)) }else{ lottieAnimationView.setAnimation(new FileInputStream(realJsonPath),newPath) }