This article is reproduced from: http://blog.csdn.net/lilidejing/article/details/46564491
Enter the system framework layer, modify the source code of mediaplayer.java, and add a method. As a result, recompile the system and report the following error:
[java]
view plain
copy
………………
N ote:SomeinputfilesuseoroverrideadeprecatedAPI.
N ote:Recompilewith-Xlint :deprecationfordetails.
6warnings
Then go to mediaplayer. Java and restore the modified file. The result is compiled and passed. The key is that I need that method
The final solution: enter the Android directory and execute the make update API
After execution, recompile and pass
Similar Posts:
- Mac prompt operation not permitted solution
- Solution: “mediaplayer error (1, – 2147483648)” problem
- [Solved] Caused by: java.lang.ClassNotFoundException: Didn’t find class “…”on path: D…
- error: only position independent executables (PIE) are supported.
- [Solved] Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x2
- [Solved] Android jni-dlerror Error: undefined symbol: JNI_OnLoad
- No resource identifier found for attribute ‘keyboardNavigationCluster’ in package ‘android’
- Solve the security check error similar to error c4996: ‘scanf’: this function or variable may be unsafe in vs2019
- Convert Object to List>, avoiding Unchecked cast: ‘java.lang.Object’ to ‘java.util.List
- [Solved] Duplicate class com.blankj.utilcode.BuildConfig found in modules classes.jar