ADT Run
Right-click Zblibrary Demo > Run as > Android application
A partial error may occur with the following solution:
Right-click Project (here Zblibrary and Zblibrarydemoapp)
1.Resource > Text file encoding to UTF-8
2.Java Compiler > Change Compiler conpliance level to 1.7
3.OK > re-run, then zblibrary can use the
Androidstudio Run
Run > Run app
Some cases cannot be compiled successfully, build > Clean Project, rerun run
If not, the solution is as follows:
File > Close Project >
1. Create a new Android Project
Start a new Android Project > Edit package Name, fill in (Zblibrary.demo), other casual, default default > Run OK to run successfully
If the run fails, look for the reason to re-create a new Android Project
2. Create a new Android Library
File > New > New module > select Android Library > library name and Module name fill zblibrary; Edit package name, fill Zuo.bia O.library > Finish
3. Reliance on Zblibrary
Right-click App > Open Module Settings > Dependencies > Add (click "+") > Module Dependency > select Zblibrary > OK > OK
4. Running (Run > Run app), if unsuccessful, find the reason to retry
5. Replace Zblibrary
1) Open the download and unzip the Zblibrary (Androidstudio) in Zblibray > libs, main replace the new zblibrary in these two directories > Android Studio Interface Build > Clea N Project
2) Right-click App > Open Module Settings > select App > Dependencies > If you have ANDROID-SUPPORT-V4 package, select and click "-" to remove > OK, no Cancel
3) Right-click App > Open Module Settings > select Zblibrary > Dependencies >
① If there is a ANDROID-SUPPORT-V4 package, select and click "-" to remove
② click "+" > File dependency > Select one of the Libs directories > OK
③ Add libs Other jar dependencies, same method as ② > OK
6. Repeat the 4th step
If successful, then the zblibrary can be used.
Zblibrary workarounds that cannot be run