Reference project in eclipse could not find *.apk! workaround

Source: Internet
Author: User

Baidu on a lot of could not find *.apk! This compilation error resolution post, but the main point of the pen in the reference Project in the context of the issue of the error message (do not affect the normal compilation of this project run!) )。

Pen master just from Google on volley source down, wrote a test project, the volley source project to introduce the test project (Java Build path->projects), the compilation process found a red error:

...
[2014-08-25 11:03:16-androidtest] Performing wavky.wand.androidtest.MainActivity activity launch[2014-08-25 11:03:16-androidtest] uploading androidtest.apk onto device ' DMPM6235303695 ' [2014-08-25 11:03:16-androidtest] Installing androidtest.apk ... [2014-08-25 11:03:18-androidtest] success! [2014-08-25 11:03:19-volley] Could not find volley.apk! [2014-08-25 11:03:19-androidtest] Starting activity wavky.wand.androidtest.MainActivity on device dmpm ...
...

This message is easy to ignore because it does not affect the running of the test project at all, but it is still very tangled, and the research finds that it should be an Eclipse identification error, because the volley source project exists as the Library project's identity (Volley project properties- >android->is Library; test Project Properties->android->library->add Volley project), This setup ADT compiles the entire volley project into a jar package placed in the bin directory, and the APK package in the normal project is no longer generated, so eclipse does not detect the APK package and then it is reported as a direct error.

The solution is also very simple, the volley source project to cancel the is library tick, clean & rebuild once, generate apk and then check back to compile into jar, OK.

Reference project in eclipse could not find *.apk! workaround

Related Article

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.