first android app gets unfortunately stopped in device - android

Whenever I try to run my first app the hello world app without any changes, I get this error:
VM aborting Fatal signal 6(SIGABRT) at 0x00007ec3(code=-6),thread
32451(xample.justjava)
What does this error mean and how can I fix this?
Below is the error from console:
[2015-06-26 21:35:16 - android-support-v7-appcompat] Could not find android-support-v7-appcompat.apk!

The last error message posted indicates that your application is missing the android-support-v7-appcompat library. This is a library that enables the backwards compatibility of many UI features as described here. It is required for the default Android code examples to work.
Please make sure that you have downloaded the support packages with the SDK manager and attached the resources to your project as described in the official setup guide.
Edit:
The console error also indicates that you have accidentally compiled the library apk itself to the project, which should not be done. Please check these links: Could not find appcompat_v7.apk and Android Could not find android-support-v7-appcompat.apk error

Related

Issue with building paypal here sdk

I'm trying to allow customers to pay with their credit card on my app. So I followed these instructions to run the paypal here sdk sample app but I'm having trouble building the sample app. It gives me the following errors.
:processDebugResources
warning: string 'sdk_dlg_title_card_swipe' has no default translation.
C:\Users\HaMiD\Downloads\Source\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.2\res\values-sw600dp\values.xml
Error:(2) Resource entry abc_action_bar_default_height_material is already defined.
C:\Users\HaMiD\Downloads\Source\build\intermediates\exploded-aar\paypal-here-sdk\res\values-sw600dp-v13\values.xml
Error:(2, 1) Originally defined here.
Next, I added the SDK to my own project (File->New->New Module->aar) and add compile project(':PayPalHereSDK') to the build.gradle. But when I try to build the project I get the exact same error once again. For some reason I'm having issues building with the SDK. Any help would be appreciated.
Thanks
Seems that was an issue with SDk 1.6. The new version (1.6.1) that posted to github a few hours ago doesn't have this problem anymore.
Thanks guys

Unable to build Android app FabricGenerateResourcesDebug

I'm trying to integrate twitter's sdk with my app. I'm following this guide.
Unfortunately, when I try to build my project, I keep receiving this error:
Error:Execution failed for task ':app:fabricGenerateResourcesDebug'.
Crashlytics Developer Tools error.
Unfortunately because I don't have 10 reputation, I can't post my build.gradle file because it has links in it. Just trust the fact that it looks just like the build.gradle example in the top link provided.
Is there something that I'm missing that I may have overlooked?
Your problem should be caused due to that you did not create a “crashlytics.properties” file which is required to contain API Key and Build Secret in your app directory.
The solution is quite simple that you don't even have to manually setup anything on your original project. Just following this link:
https://fabric.io/settings/organizations
It will lead you to the Fabric official website, which helps you to download and install Fabric plugins into your IDE (Android Studio, IntelliJ or Eclipse). This might be a new magical method to integrate twitter's SDK within your app, it will automatically configure your project. You will see the magic when you get there.
Hope it helps.
The fix I found is that I did not place the meta-data tag with the API Key INSIDE the application tag in the androidmanifest.xml.

Could not find BaseGameUtils.apk

For the last 2 days I've been trying to simply get Google play game services Integrated into my game. I've followed the instructions here...
https://github.com/playgameservices/android-basic-samples/blob/master/README.md
...many many times. I have been trying to get it to build with Gradle but for now, I'll just focus on Eclipse building until that works. I've imported BaseGameUtils project into my workspace as an Android library project. My game android project has two Android library dependencies: google-play-services_lib and BaseGameUtils. Everything in Eclipse is showing without any errors. When I build and run on a real device, I see an error that says -
[2014-10-27 20:39:25 - BaseGameUtils] Could not find BaseGameUtils.apk!
I don't know why it's even looking for BaseGameUtils.apk since it should be an Android library. That said, I'm not sure how an Android library is really handled so maybe it should be a .apk. In any case, I couldn't find any information on this bug and the error message doesn't give me much to work with. I've tried adjusting things in the Build Path but no luck. I did have to remove some redundant dependencies in my Build Path earlier since I was getting some kind of duplicate DEX error but I'm not sure that's related in any way to this. I am desperate for help, anyone have any idea?
Can you try this? It has to do with conflicting methods of specifying that a project is a library.
I found the source of the problem!
It turns out that "with the new library feature, you don't specify the
Android projects you depend on in the Java Build Path section of the
Properties. You do it in the Android section of the Properties".
So all I had to do is go the Application Project's Properties, hit the
Projects tab, select my own library project and click the Remove
button. That's it. No more problem.
In Eclipse Java EE select the project Properties, then select Project
References, then check the FacebookSDK (see screen capture)
From: Android Eclipse - Could not find *.apk
If that doesn't help, you may want to double check that you selected "Is Library" in BaseGameUtils.
Also, when you hit "Run" in Eclipse, are you running your application and not BaseGameUtils?
Please would you check that BaseGameUtils has "is library" checked and that your application project DOES NOT have "is library" checked.
If this is correct, then please would you review the following in detail (especially as regards checking and unchecking "is library" ) :
Android Eclipse - Could not find *.apk
I presume that the DEX error related to two or more versions of the same lib. What is the specific GameHelper error ?
As a general point, I find it productive to get a sample project working first to ensure that I have got the environment working correctly before I start integrating game services into my own projects. If you have been changing the build path then it may be quicker to start from scratch and get a sample working. I have followed those instructions in the past and they are accurate.

pubnub test application crashes: NoClassDefFound

this is a copy of my question on Pubnub support page:
Hi all, I tried running the PubnubTestApp that is downloadable with the Pubnub API from your git repo.
but when I try and start the test app i firstly get a build path error because apparently you (pubnub guys) have configured the project to look for 2 jar files that don't exist. (bcprov-jdk16-145.jar and commons-codec-1.2.jar).
after I removed those 2 references the project showed no error. but when I tried running it, it crashed again with this error:
"07-04 12:29:11.782: E/AndroidRuntime(754): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.fbt/com.fbt.PubNubTestActivity}: java.lang.ClassNotFoundException: com.fbt.PubNubTestActivity in loader dalvik.system.PathClassLoader[/data/app/com.fbt-1.apk"
after looking over the internet for the reasons for this crash, I noticed that in the manifest.xml file in the project there is a mistake in the name of the activity name. (it's named ".PubNubTestActivity" instead of ".PubnubTestActivity").
after changing the manifest, everything works and the app will install and run but there a a few problems still.
when pressing the "publish" button or the "history" button the app crashes and dies automatically. also it crashed without any clicking of anything (just like that).
here are the crash reports I got from the emulator.
http://pastie.org/private/pojnpnxmznvn9azdg7uyg
apparently the project doesn't recognize the "pubnub.crypto" jar file even though I (and you) added it to the build path and made sure it's in the project.
please let me know how to fix this so I can use (at last) pubnub in my app.
Have you tried the latest build? This should be fixed now.

Android app with library can't find the library.apk

I'm trying to get the FinchVideo example from the Programming Android book to work. It uses the FinchWelcome library. I've set up FinchWelcome as a Library and in the FinchVideo application I have checked the FinchWelcome library in Properties -> Android. When I try to run FinchVideo in the emulator it complains that it cannot find FinchWelcome.apk (output below). I'm building for Android 4.0.3.
While Googling for this problem I've found that a lot of people have this problem with Android apps that use libraries. No one seems to have found a solution that works consistently, though. None of the Android books I've seen even talk about how to download libraries.
What is the proper way to handle libraries in Android applications? Is this a bug in the Eclipse ADT?
Thanks.
[FinchVideo] Installing FinchVideo.apk...
[FinchVideo] Success!
[FinchWelcome] Could not find FinchWelcome.apk!
[FinchVideo] Starting activity com.oreilly.demo.pa.finchvideo.FinchVideoActivity on device emulator-5554
Not sure if you have struggled on the same corner yet for me the solution is to add the library in the Android Properties of you project rather than as project in the Java Properties ...
I am also getting this error ( lets better call it confusing/weird message ) every now and then - my Workaround: just ignore it for now and wait for a new ADT version
And yes - imho this is a bug in ADT - Android is really nice, but ADT needs a lot of more attention for sure ..-)
I got the FitchVideo app. installed on the emulator. When I run it it crashes immediately with
D/AndroidRuntime(505): Shutting down VM
W/dalvikvm(505): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
E/AndroidRuntime(505): FATAL EXCEPTION: main
Nothing in the rest of the stack trace refers to the Fitch source (app. or lib.).
I can't tell if that is a problem with the way that ADT installed the app. and lib on the emulator or if it is some other problem.
I don't think I'm going to spend much more time with the code from the Programming Android book.
I solved the problem.
In your FinchVideo project you will need to add the reference to FinchWelcome as a jar-file library reference rather that a project library reference.
Hope this helps.

Categories

Resources