Skip to content
Advertisement

Tag: android-studio

android.view.ContextThemeWrapper cannot be cast to android.app.Activity

I’m not a designer but when i got this project i can`t open specifically some screens, i think that they are screens and we only reuse some of the layouts have been created. Anyway can somebody help me? @Override public void onBindViewHolder(@NonNull final ProductsAdapter.ViewHolder holder, final int position) { String imageUrl = ProductsList.get(position).getImage(); and the logcat shows this Answer This

Android Studio: Cannot resolve symbol ‘raw’

I’ve a resource directory called “raw” in the “res” folder, but still can’t access it through my code. The problem occurs when trying to declare the MediaPlayer variable. Answer Android Studio 3.6+: Click on Build -> Rebuild Project and then click File -> Sync Project with Gradle Files Android Studio 3.5 and earlier: Click on Build -> Rebuild Project and

Can’t find Java folder in Program Files

I hate asking this, but I’ve never been able to find my Java folder on my current PC. I’d like to find it so I could use a keystore command to find my SHA and just to know where it is. I found a SHA number through gradlewindow/signing report, but now the api page isn’t accepting it so I wanted

How to use strings on java (Android)

I’m working on a project where I’ve defined several strings to use on my project. I want to use a string to be displayed as my subtitle of the page on the toolbar. The reason I’m using strings is because I want my app to be translation supported. Here is how I use subtitles on the toolbar of my activity:

Gradle – Error Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0]

I am trying to open existing android project in android studio and it gradle cannot build the app without the error Error android studio keeps on throwing My Code in build.gradle Which can help to understand my issue My dependencies Please help to solve the issue Answer Replace compile with implementation. compile was recently deprecated and replaced by implementation or

Advertisement