Zblibrary workarounds that cannot be run

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.