I am using Unity3d 4.5.5f1 and I followed this tutorial in order to add Admob ads into my android game.
http://youtu.be/kBRb9ba71qI
I then build my app and install it into my android phone and it says "Missing internet permission in AndroidManifest.xml." even though I have the permissions in there.
http://www.mediafire.com/convkey/0f46/vnhxlb6fia231uyfg.jpg?size_id=4
I have the AndroidManifest.xml inside Assets/Plugins and this is how it looks like.
http://www.mediafire.com/view/vfvwcmyrngie0cu/androidmanifest.txt
I just can not seem to figure this out, any help will be appreciated.
Like LearnCocos2D said, you should try to clean your project. In Android Studio you can choose "Build > Clean Project", in Eclipse it should be something similar. I would have posted this as a comment, but I don't have the rep ;)
I figured it out, the problem was that I was putting the AndroidManifest.xml inside Assets/Plugins when it should be in Assets/Plugins/Android. I feel so dumb for wasting hours and hours trying to figure out such a simple mistake.
Related
I searched around a lot before asking, on this website and others, I've found a lot of advice but I either can't fully understand it, or I'm implementing it wrong.
I build my .apk from Unity3D, and then I put that on Google Drive and using ASTRO File Manager on my Galaxy Tab 2 10.1 (GT-P5110) I launch it and install it, it says 'installing' for a short amount of time and then it just tells me 'App not installed'.
Most of what I've read is telling me that it wont work if it's an unsigned build, but to start with I was using the debug option in Unity's Publishing Settings, and now I've generated a new keystore, rebuilt it, got it back over on the device and the same thing is still happening.
Am I missing some critical concept or step here? I'm brand new to Android development and it's taken me a while to get to this stage, so if there's something I'm missing that is glaringly obvious then please help me out!
Thanks in anticipation!
SOLVED: Followed the instructions here, and it fixed my problem! Hope this helps someone else!
http://forum.unity3d.com/threads/210920-Failure-INSTALL_FAILED_CONTAINER_ERROR
The Solution in this is following:
Go to "Player Settings", click Android Tab
Under Other Settings/Configuation/Install Location, set to "Automatic".
Hey so I have been having this issue for a few weeks and it's incredibly bothersome. I have looked at the other posts regarding the issue and tried everything without success. This inculdes:
Checking that all .xml files are named correctly,
adding to the top of all .xml
files,
renaming package (which it does not let me because it says I have to
fix the errors first )..
I have also tried removing newer .xml files. no luck.
the error occurred when I did a routine clean the other week. I immediately proof read then removed the view_feed_event.xml file which I had just created and re-cleaned with no luck
thus far I have not been able to figure out the problem and it has persisted.
the only other thing I can think if is I added the App Engine SDK a few days prior to mess around with that
heres a screenshot, standard output for a J.java generated error.
any help would be greatly appreciated and I will make sure to accept the answer that resolves the issue.
Kind regards,
- Pete
Well, the comment from Ken Wolf proved to be the correct one...
I did not have Android SDK Build-tools installed and there were several small errors in my xml that were not flagged as a result.
the resolution to this involved: Window -> Android SDK Manager -> check and install the tools then restart the ADT
thanks again ken for a timely response, you nailed it
UPDATE 2
I posted an answer that fixes my original problem. See that for more information.
UPDATE
FYI for anyone wondering, in the end I found this: http://github.com/commonsguy/zxingdemo/tree/master Exactly what I needed to get it rolling was a simple demo that worked! Also, thanks to Sean for pointing me in the right direction for my googling.
I am currently trying to build a simple android app that can scan in a barcode. I have looked through multiple tutorials, tried everything to a T, and re-tried and re-tried. Nothing worked. So now I am going to ask for assistance to see where I went wrong.
To list the tutorials I have followed:
https://github.com/phonegap/phonegap-plugins/tree/master/Android/BarcodeScanner
Tried this one first.
http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt3
http://simonmacdonald.blogspot.com/2011/12/installing-barcode-plugin-for-phonegap.html
Plus a couple others, but more or less hit the point to the same process. Some key points, when I add the LibraryProject to my project as a Library, the app will not compile until I create an AndroidManifest.xml I tried using the one found in the LibraryProject and tried creating a bare mininmal one, both would allow to compile, but the app ForceCloses.
When I load up the App and click "Scan" it ForceCloses and in the debug log of LogCat in Eclipse I get:
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.myapp/com.google.zxing.client.android.CaptureActivity}: java.lang.ClassNotFoundException:
com.google.com.zxing.client.android.CaptureActivity in loader dalvik.system.PathClassLoader[/data/app/com.myapp-1.apk]
I have tried googling, found a few issues, but no real clear or solid answers, most just point to the tutorials above. I am not sure if the tutorials are just outdated or I am being stupid and am missing something key. Been working on this for a few days now and am at my wits end.
If you can help I would appreciate it. To avoid answers regarding if I have done X or X, here is what I have done.
When I test the application, I do briefly see it trying to load BarcodeScanner, but right after I see that it ForceCloses. I am not sure what I am missing, but for references I will post the code I currently have setup to test:
AndroidManifest.xml - http://pastebin.com/qq9q0ZU7
Plugins.xml - http://pastebin.com/dZ5eKPSU
index.html - http://pastebin.com/wvht4ken
If I need to post any other items let me know.
On Android, it is much much simpler than all this you're trying to do. Throw this out and restart from http://code.google.com/p/zxing/wiki/ScanningViaIntent
Ok, so for anyone having this problem, you have two choices. You can use the ScanningViaIntent, as Sean pointed out. It works great, if you need an example look at CommonsGuy. As for the tutorials I posted above to get this working with PhoneGap, my whole problem was, after I imported the LibraryProject I did not go back through and add the files. I am not sure if a setting in my Eclipse is bad. But I basically just right clicked on the LibraryProject, went to Import -> File Structure -> Library Project's original project path, and loaded all of it back in there.
There is probably something wrong with my Eclipse setup, but yea. I now have the BarcodeScanner plugin for PhoneGap working!
While integrating MoPub SDK in my app, I followed instructions line by line given at https://github.com/mopub/mopub-client/wiki/IntegrationHowToAndroid but still I am getting an error:
import com.mopub.mobileads.*; is unresolved.
What mistake I am committing?
You need to download the SDK and make sure that you include it in you project
This is Franklin from MoPub. As Flynn said, you will have to edit your manifest file to have the proper permissions for the MoPub SDK.
Can you make sure you follow the instructions here:
https://github.com/mopub/mopub-client/wiki/IntegrationHowToAndroid
Additionally, we have a knowledge base you can reference here:
http://help.mopub.com/
If those don't help you solve the problem, feel free to email support#mopub.com. We're pretty good about responding and we'll make sure you're taken care of.
This is a really stupid question I imagine, but is there a way to search for hidden errors. I'm working on a project in MotoDev's Eclipse environment, and it won't let me run suddenly stating that I need to fix errors first, but it won't show any errors in the log at all.
Check out the Problem view, you may get something there.
There shouldn't be any hidden errors in MOTODEV Studio. As Tony mentions, bring up the Problem view to see if there are any errors listed there. Also, look in the project explorer and see if there are any files or folders with a red X on them, which indicates a file with a problem is in there. Failing that, do a clean build on the project.
If the problems persist, give us a shout on the MOTODEV forums and we'll work with you to get the issue resolved.
Eric