Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 317 Vote(s) - 3.48 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Entry name 'res/color/material_on_surface_disabled.xml' collided

#1
I just created a signed apk after which, I added two files to my project- my_web_activity.xml and MyWebActivity.kt. After compiling the code, I got the error-"Entry name 'res/color/material_on_surface_disabled.xml' collided" Nothing else was specified.

my_web_activity.xml
````
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="match_parent">

<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="false"
app:adSize="BANNER"
app:adUnitId="ca-app-pub-3940256099942544/6300978111"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent" />

<WebView
android:id="@+id/my_web_view"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="1dp"
app:layout_constraintBottom_toTopOf="@+id/adView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
```

MyWebActivity.kt
```
package com.albertjokelin.revise

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.google.android.gms.ads.AdRequest
import com.google.android.gms.ads.AdView
import com.google.android.gms.ads.MobileAds

class MyWebActivity : AppCompatActivity() {

lateinit var mAdView: AdView

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

setContentView(R.layout.my_web_activity)

// Google Ad view
MobileAds.initialize(this)
mAdView = findViewById(R.id.adView)
val adRequest: AdRequest = AdRequest.Builder().build()
mAdView.loadAd(adRequest)
}

}
```

Edit: I ended up rebuilding the whole project from scratch after trying everything available at that time. So I don't know which solution works. Cheers!
Reply

#2
I have got this problem when I made an update in a splash screen and a **quick solution is**

1. Delete your **build** folder from android/app/**build** or yourProjectFoler/build
2. Delete your **release** folder from android/app/**release** or yourProjectFoler/release
3. **Last step** from android studio goto => **Build** > **Rebuild Project**

Try now! I hope it will work...
Reply

#3
Go To Build > Clean Project
Reply

#4
Tried INVALIDATE CACHES AND RESTART and works perfect. The main reason is android studio tries to update the build index but is not able to access it !
Reply

#5
Delete your `build` folder in the **project** hierarchy & the `release`/`debug` folder in the **app** hierarchy,then rebuild your project, it worked for me that way.
Reply

#6
don't delete anything just turn off android studio than turn on then make clean and rebuilt to your project and every thing will be good
Reply

#7
I tried `Build -> Clean Project` and `File -> Invalidate cache too`.

Nothing worked.

Only thing that worked for me was deleting the previous apk that was generated

Which is in `android/app/debug/app-debug.apk`

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through