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
Tag: android-studio
Android Studio 3.1.3 – Unresolved reference: R – Kotlin
I am new to kotlin, i have converted some code from java but it seems like there’s something wrong, The R in findViewById(R.id.my_id) is highlighted in red and it shows this message : “Unresolved reference: R”.. I’ve been looking for a solution but i seem not to figure it out, So what should i do? Here’s a screenshot : Answer
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:
Text not showing up on android, but does show in preview in android studio
I am trying to build my first Android app using Android Studio and Firebase. I have it all connected and it is showing the content from the database and images from the firebase storage just fine. The problem is, for some reason my text isn’t showing up that I added into the xml. At the bottom of the post there
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
Android studio error: An error occurred while trying to compute required packages
I’m trying to install the latest Android Studio on a MacBook pro 2015 Unfortunately I get this error: An error occurred while trying to compute required packages. Here a screenshot of the error: which is not very informative. What’s causing the problem? EDIT This is the exception I get when I run the application from the terminal: EDIT Google has
How to call activity from a library module in android studio
I am trying to call an activity from a library module in my application. I keep getting the error android.content.ActivityNotFoundException: Unable to find explicit activity class {com.nextgis.mobile/…
How to set sourceCompatability to javaVersion.VERSION_1_8
I installed jdk1.8.0_112 and write code below in build.gradle i received this error Can anyone help me? Answer from https://developer.android.com/guide/platform/j8-jack.html, you also need following: UPDATE Note that Jack toolchain is now deprecated https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.html