My project working perfect but i need map implementation and I add google play service library. After that whenever i run project my GC stopped working and eclipsed hanged. I closed eclipse and i removed google play service library and now my project working fine.
This strange but it's really happening. I also update my google play service library. But updated library also not working.
Two error dialog I am getting when try to run my project
I tried it approx 3 times by removing and adding library but same problem.
EDIT : I also try this library with my previous map sample project but now its also not working.
Related
I want to get location updates in background when app is minimized. So I created a demo Flutter application with a service in native Android which I can run in foreground to get the continuous location updates for application and it is working fine as my expectation it is updating locations in notifications (for test).
Then I tried to implement same service with actual Flutter application with same service mentioned in manifest file same as demo application but my application is crashing on starting so I can't debug and in addition to that I don't get any error in building.
My main Flutter application is working fine without the location service implementation so only issues is after implementation it causes crashing.
What could be the issue and solution for this problem or how can I find out what is the problem?
I am doing same thing in original Flutter application same as in this dart code of demo application. How can I investigate this problem?
I am adding my answer regarding the question mentioned above.
in my case, it was not a foreground service which was crashing application but the issue was that As the flutter is growing framework, We get lot of updates & changes. With one of those Flutter update, Flutter updated plugin registration process for app on native side so some plugin with older version dependencies doesn't get registered with app as flutter doesn't support FlutterView(deprecated) anymore.
Note: Always make sure your plugin dependencies are updated to latest version of its dependencies in pubspec.yaml.
For me, My main application and demo application created for foreground was working according to my expectation but when I merge them it was crashing because camera plugin dependency version was too old. Second thing you can do is which can also reduce chances of error due to androidx compatibilty as well. Though, it is not too tough to do in old app as well.
Note : Create new flutter project and move your all dart code to new application.
Please be careful while doing this option.
-- Don't forget to add permissions in manifest files which you are accessing in app.
-- Don't forget to add assets and resources used on native side if you have added or changed.
-- Don't forget to set version according to version of old app.
-- Don't forget to make changes in your gradle files if any of app dependencies use that configurations like minimum sdk, targetSdk, etc... (if it applies in your case)
If you don't find this useful you can run your android side code in android studio and can find out what is the problem by debugging that code and fix it. Thanks
I read a tutorial from Google site there is written that the old way of using stand alone admob SDK is now deprecated, and we have to use the new way by using Google Play Services lib. I import into Eclipse and then add Google Play Services lib into my app "hello world" as a sample, but when I run the project it loads for 1 minute and then it doesn't run and it shows an error:
Unable to execute Java heap space error
Can any one tell me that how to put an ads into an app?
I'm a bit of a newbie to all this.. but I can't seem to find any specific instructions for my scenario
I have built a simple endpoint api, using a maven project via eclipse.
I have built an android app, and just want to add a little test in it to use the simple api.
(sidenote: i have also built an app engine web app which will later also [i hope] make use of the same endpoint api, so both the web app and the android app make use of the same library / code)
anyway, I'm stumbling on a couple steps.
I can't seem to use the eclipse 'google -> generate cloud endpoint client library' option, since it's a maven project.
So i found on the google site, instructions to use the endpoints.cmd commandline to generate the library.
I successfully did this apparently (it created a zip file rather then just a jar)
here is where i am confused what to do next.. or if i missed something.
I have tried adding the jar within the zip as a library in the build path for my android app.
When I do that, I see that the Builder member doesn't seem to have been added.
Should I expect it to have been added by the library generation?
I can't seem to do anything in my android app code to use the library.
What am I missing / doing wrong?
I have an extremely strange problem to which finding solution seems to be very tricky. Here's the story:
The application I'm working on uses both Facebook SDK and Google Maps v2. Team mate was working on Google Maps and I was working on Facebook part. When we combine his and mine code it appears that just having FacebookSDK as an imported project in the workspace (not even referenced in Properties|Android|Library section of our app) , straight away makes the app not see the Google Maps library. The work around is to add Google Maps into Java build path, however the application still crashes when we try to access the activity based on Google Maps. Not having Facebook SDK in the workspace makes the Google Maps work. When the app is ran with Google Maps added to the Java build Path, when trying to access the Google Maps activity LogCat shows NoClassDefFoundError exception.
Hope I explained the problem well. If not then let me know what more is required to get closer to fixing this strange problem. Thanks :)
SOLUTION: It seems that adding Java Build Path reference to android_sdk\extras\google\google_play_services\libproject\google-play-services_lib\libs\google_play_services.jar file fixed the issue. Crysis averted. ;)
I'm developing a simple application for Blackberry and i'm using Google's gson to retrieve some data from a server.
The UI was working fine but when I added the gson part it started failing, it wont run.
When I run the application in the simulator it show this error: "Uncaught: RuntimeException" on that annoying white screen of death and after holding the click button I can see that there is an alert dialog that says "Module 'gson-1.4' not found".
However I did added "gson-1.4.jar" in the Project's Properties -> Java Build Path -> Add External JARs... also, the Gson objects are recognized at my code, no syntax errors at my code.
BTW, I'm using Eclipse and the most recent Blackberry SDK
Please help
Gson is created around Reflection and other stuff that is not present on J2ME, wich the Blackberry API is based on.
So, sadly no Gson for Blackberry.