简体   繁体   中英

How to run an android library project?

I want to make a Google Maps Android project, but when I use the google play service library in the project and i click Run as => Android Application . It gives the error " Android Library project cannot be launched ". I tried many methods to solve this problem like: check or uncheck the "is Library" checkbox. But to no avail.


  1. When I check the "is Library" checkbox it give the error "Android Library cannot be launched"
  2. When I unchecked "is Library" checkbox it gives the error after some time "Unable to execute dex:GC Overhead Limit Exceed"

I fixed my problem.

How to run an android library project?

You do not run an Android library project. You use an Android library project to add functionality to an Android application project. You then run the Android application project.

I want to make a Google Maps Android project

Follow the instructions to add the Play Services SDK to your Eclipse project. Then follow the instructions to use the Play Services SDK to create an application that uses the Maps V2 API.

When I change the value of eclipse.ini file like below :

--launcher.XXMaxPermSize
256M
-Xms40m
-Xmx512m

It Solved my problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM