I am a beginner in android development.
I am trying to add admob with firebase in my app but when I add firebase-ads dependency in gradle file, it causes the app to crash.
When I remove the dependency and run the project it works fine but when I add firebase-ads dependencyimplementation 'com.google.firebase:firebase-ads:17.1.2' then my app crashes.
Just use an older version, it happened to me too, so I downgrade it to 16.0.1 and now it works fine :D
As a beginner, use Firebase assistant from Tools > Firebase > AdMob to implement it automatically.
Related
I recently updated android studio and it's plugins, and all was working properly. But suddenly this happened and i can see how to solve. The app runs, but there are some unexpected behaviours. Tried to sync gradle, uninstall and reinstall the updates and nothing seems to work.
Activity.java for example
just remove your imports and make sure that they are importing from androidX
or enable auto-import from android studio setting and let it import it for you.
I wanted to work without android studio as it really slows my laptop down.So I after research I got to the deprecated android command.As it is deprecated ,Is there another way to create android apps without android studio
I also looked at cookie-cutter and similar apps.They all have one problem-They don't dynamically update the android gradle plugin on updates and are also separated from the android command line tools
Some more information about your project could be useful.
If you're using Gradle, each of your build variants/flavors will have a command for building.
More information can be found here:
https://developer.android.com/studio/build/build-variants
and
https://developer.android.com/studio/build/gradle-tips
i'm running my app on android 5.1 API 22. Its too old and my app doesnt work propertly. Android studio give me this error. any application I run on andoid 5.1 give me this error
i disable instant run on android studio.
i try another phone with android 5.1.
i think problem isn't into the code, but in android studio.
this is the error:
Click ("")!
I see from the description and error log, you are not able to install the app on your device. But I am not able to get exact context of the problem you are facing.
My recommendation would be:
It is because of old debug-apk cached in your android studio. I would recommend to Build -> Clean Project -> Rebuild Project and Install Apk. This way, it will clean the old apk and rebuild new one and install it in your device.
Not Able to add or remove new module or module dependency library in android studio 3.1.3 in earlier version its working fine. It is showing Internal IDE error while am trying to add or remove new library. I have already done invalidate caches and restart the android studio but still not able to add or remove.
I'm a newbie to android and was trying out an imported android application to integrate with an third party web services but it didn't worked out well and since then I'm not able to run any of the application I had in my eclipse workspace nor I see the application installed in the menu list of emulator. I tried setting up everything from scratch (ADK) but it didn't worked so can anybody suggest any solution for this.
Thanks in advance
ya it is very complex to setup Eclipse & plugins Android SDK & ADT i think this will help you out
We had the same problem with our app. The App Dev Room app required us to install the ADT plugin to Eclipse before it would function correctly.