I am attempting to incorporate mopub adverts into my game and get the error "Could not find mopub-android-sdk.apk!" reported in eclipse's console window when attempting to run the game. I am puzzled as to why it should be looking for an apk file at all - surely an apk file is a wrapped up program to execute (correct me if I'm wrong) - but I think mopub is supposed to be a library. Surely all the mopub functionality should be built into my single game apk, shouldn't it?
EDIT: The console output looks like this...
------------------------------
Android Launch!
adb is running normally.
Performing com.company.game.Splash activity launch
Automatic Target Mode: using device '0123456789ABCDEF'
Uploading Game.apk onto device '0123456789ABCDEF'
Installing Game.apk...
Success!
Could not find mopub-android-sdk.apk!
Starting activity com.company.game.Splash on device 0123456789ABCDEF
So it looks to me like its already installed my game.apk - why on earth would it then want to install mopub-android-sdk.apk?
EDIT: I just tried getting MoPub's sample demo working and that was fine. So now I'm suspecting its something I have set up incorrectly in my game project.
You might have an unnecessary reference to the MoPub project in the Java Build Path section of your project's Properties. See the answer posted here.
You should do just clean the project & build it again..
Related
I have installed Android Studio today. I'm a newbie to Android development. I know that it has been asked several times, but my Android Studio is most updated as of now, so none of the solution seems to work. [AndroidStudio v3.6]
After the installation got over, I attempted to create an Empty Project. It opened the whole project as seen below,
After waiting for 7+ minutes (bottom-left), gradle is still not downloaded, and the activity_main.xml file keeps showing "Loading".
Solution 1 - Change the gradle location
I found this location to C:\Users\RAHUL.LAPTOP-DISIIAS2\.gradle\wrapper\dists\gradle-5.6.4-all\ankdp27end7byghfw1q2sw75f, but it contains two files - one is gradle-5.6.4-all.zip.part and other is gradle-5.6.4-all.zip.lck file.
Solution 2 - Invalidate and restart
Doesn't seem to work
Solution 3 - Change gradle settings to work in offline mode
The version I'm using doesn't have the option
How can I fix it?
Here is my gradle-wrapper.properties file:
First, check if you are connected to http\://services.gradle.org/distributions with ping command in Command Prompt. If you are connected, then change Proxy Settings in Android Studio to Use System Proxy. If it is downloading slowly again, your internet connection may be slow. Or you best fallow guidelines in this link : Gradle Download: Installing Manually
Then work in offline mode will appear in your settings.
After a little of playing with java codes in android studio, suddenly it stopped installing apps on avd. I can have the apk output and install it on my phone(there I get the play protect error of unconfirmed developer ) as I disabled play protect on my avd. I have no idea what the problem is.
every time I try to do that android studio retries to uninstall the app from avd and the app is not on the apps list of avd device the error code is this:
Unknown failure (at android.os.Binder.execTransact(Binder.java:697))
I have done the solution on this post but it didn't help.
this post:https://stackoverflow.com/questions/44202530/error-unknown-failure-at-android-os-binder-exectransactbinder-java565-error
Edit
another error raised:
error pic
the problem was that with the ioutils that i was adding on dependencies some how made compatibility problem with the system cpu (the problem that i didn't have on my android phone)so next time it happens to any one first check your dependencies by going to:
File -> project structure -> dependencies tab
delete any unusually item there that did the trick for me
Note That it may make your app to act abnormally
Okay so Im starting work on android application development. Ive downloaded the newest sdk's. But there seems to be a problem. Whenever i create a project or save a project or edit a project a command prompt pops up
(aapt.exe)
Ive experienced some stuff with android development before and this didnt happen before. Is there a way i can put android development into "Silent" mode while working as it gets somewhat annyoing.
Thanks
AAPT is a tool that processes the ressources of your app:
The Android Asset Packaging Tool (aapt) takes your application resource files, such as the AndroidManifest.xml file and the XML files for your Activities, and compiles them. An R.java is also produced so you can reference your resources from your Java code.
So I think that you did some errors in your ressources or xml files. Eclipse has problems to detect and show these kind of errors. You should check your xml files.
There are also some links on StackOverflow:
link1 link2 link3
Hope that helps you.
I'm on the android bandwagon and started going through google's "view" tutorials. Here is what I'm using:
Eclipse Galileo
Android SDK 2.1
Java SDK 6.Something I think.
Everything was hunky-dory until I hit the grid view tutorial. I got errors all over the place when I started editing the "HelloGridview.java" File. I thought I'd fix it by following through with the next part of the tutorial, creating the ImageAdapter class, but it created more. I realized alot of my issues could be resolved by importing widgets which were not mentioned in the tutorial (i.e. android.widget.GridView, .ImageView, .BaseAdapter etc.) However, after all the reconciliation suggested by eclipse the files were finally showing no errors. I go to run it as an android app and bam, "Your project contains error(s)." window comes up. There are no errors showing on the files I've created. I cleared the error log and shut down eclipse and started again the error log now reads: Conversion to Dalvik format failed with error 1. I'm a little lost at this point. I think I've included the required information. If you need to know more let me know.
Any help is appreciated.
I had the same problem. Eclipse imported a jar in the java build path and this somehow caused the error.
Right Click o the project -> Java Build Path and make sure you have only once imported android.jar.
Some of those examples on the Android developer site are a trifle out of date, and so it may be that the one giving you grief is no longer a great example to work from.
Try this GridView sample for something that definitely works on current versions of Android.
I just downloaded the android sdk from the adnroid site and followed this tutorial to set it up on netbeans. Everything to seem to have installed fine but whenever i try to run the application this window pops up:
alt text http://img80.imageshack.us/img80/4327/androidemulator.png
What I am assuming it asking me to choose the emulator, but it is not showing up on the list. Is there a reason why?
I don't use netbeans, but it looks like you don't have any AVD's created, and if you do, then there is probably a way to associate them that you are missing in netbeans. You can check here to create an AVD http://developer.android.com/guide/developing/tools/avd.html
But I would just use eclipse if possible, the integration works really well, and it was written to run in eclipse, so there are less issues and hurdles.
Also see Running Your Application section of http://developer.android.com/guide/developing/other-ide.html that will describe how to launch the app from the tools outside of the IDE.
I have the same problem with you. But i have my emulator works now.
Are you have to do is running your Android SDK Manager, then click Virtual devices, and Make new AVD device.
Click New. Then fill name, and select Target (Platform of your Android), Skin, and hardware.
Then click Create AVD to finish.
Now you have device to choose. :)
go in C:\Program Files\Android\android-sdk\SDK Manager.exe and create the virtual device. After it appear in device list.
Thats it.
Open Sdk manager
Tool Manage AVD
Select and start AVD. wait open.
Goto netbean Run project.
U must see project run in AVD.
Success..
The article at the link #broschb had posted is explaining how to create an AVD using command line. Do exactly what is says there (it's very easy). Once you have created the AVD it will appear in the AVD list in Netbeans. Actually, if you have only one AVD it will start by default when you run your app.
run the avd manager which is location in the android-sdk folder and then create a new avd,but be sure you have already downloaded ARM EABI system image tool set.
Just create avd (android virtual device) and run it..
like android -avd "name of your avd"
Then try to run your application.
It will ask you to select the virtual device that you have started above.
Thats it.