Не удалось скомпилировать файл значений.Android

Форум для тех, кто программирует под Android
Ответить
Гость
 Не удалось скомпилировать файл значений.

Сообщение Гость »


I have error

Failed to compile values resource file I:\Kotlin\Dicoding\app\build\intermediates\incremental\debug\mergeDebugResources\merged.dir\values\values.xml Resource compilation failed (Failed to compile values resource file I:\Kotlin\Dicoding\app\build\intermediates\incremental\debug\mergeDebugResources\merged.dir\values\values.xml. Cause: java.lang.NullPointerException). Check logs for more details

my string values is fine with no errors

Dicoding 5 5 5\n 5 10\n 10 10 123\n 20 Avernus Acheron Silent Clubstep Abyss of Darkness Kyouki Slaughterhouse Sakupen Circles Codependence Kocmoc Firework Avernus became one of the most difficult levels in Geometry Dash, placing #2 on the Demonlist initially but shifted to #1 seven months later, surpassing Acheron and becoming the current hardest Demon in Geometry Dash; it is anticipated to be overtaken by Tidal Wave. Acheron was initially placed at #2 on the Demonlist before being shifted to #1 a week later, surpassing Slaughterhouse and becoming the most difficult Demon in Geometry Dash; it was later dethroned by the shift of Avernus from #2 on October 16, 2023 after holding the position for over a year The original version was widely considered impossible for many reasons. The inconsistency of the pre-drop prevented players from making any significant progress due to its near-frame-perfect timings and the fixed-hitbox straight-flying section. Abyss of Darkness was first introduced to the public on January 13, 2018, when Exen uploaded a showcase of the layout. He mentioned it will be buffed to Top 1 difficulty and nerfed for balancing. Kyouki is a 2.1 solo Extreme Demon created, verified and published by Demishio. Kyouki is the hardest fully-solo level beaten legitimately (being completely created and verified by the same player), followed by The Lightning Rod and Verdant Landscape. Slaughterhouse is a 2.1 Extreme Demon mega-collaboration created by IcEDCave, EndLevel, river, Iris, DrCuber, CDMusic, and Brittank88, published by IcEDCave and hack-verified by spaceuk. Sakupen Circles (formerly known as Iron God) is a 2.1 Extreme Demon collaboration hosted by Muffy450 and verified and published by Diamond on 29 December 2021. The level is a remake of the 1.9 impossible level of the same name and takes several gameplay ideas from Iron God, an older level created by Muffy450. Codependence is the hardest dual level Geomtery Dash. The fact is this level is the only dual level top 100 in demonlist which make it very hard. The level is heavily inspired by the former Top 1 Demon Slaughterhouse, with most of the gameplay consisting of tight, spam-based wave segments. The level\'s gameplay was entirely built by spk (formerly SpikeGMD) and later decorated by Cherry Team. It was rated within the same day, which also triggered the rating of Slaughterhouse and arcturus. The level\'s difficulty is nearly entirely based on its use of tight timings in inventive ways. @drawable/avernus @drawable/acheron @drawable/cb @drawable/abyss @drawable/kyku @drawable/maxresdefault @drawable/platon @drawable/cdpnc @drawable/kcmc @drawable/fw PockeWindFish ryamu TheReal Sailent Exen {出見塩} icedcave [AUF] Diamond TCTeam cherryteam Trick [AUF] Zoink [AUF] Zoink [PRIME] zoe Cursed {出見塩} Doggie [AUF] Diamond Pukklez [AUF] Zoink Trick 0 12 5 9 6 30 13 2 1 48 Avernus Acheron Silent Clubstep Abyss of Darkness Kyouki Slaughterhouse Sakupen Circles Codependence Kocmoc Firework Contrary to popular belief, Avernus is not an antagonist to The Golden but rather an actual sequel. The story of Avernus is that you are searching through a volcanic crater that is also called Avernus, trying to find the gates to the Underworld. This story closely resembles the one of The Golden, where you are going through a jungle searching for the golden city called El Dorado. The decoration of Avernus seems to show the volcanic crater, with the entrance to the Underworld at the very end cube with the pillars, as well as the end-screen. The plot is inspired by Roman mythology, in which it is said that the gates to the Underworld are somewhere beneath the crater Avernus, a real place. The story also makes more sense because the original name for Avernus was The Gates. Throughout the first week of July 2021, the creators of the project would upload their part in Acheron onto YouTube. The level was unveiled to the public on 7 July 2021 on Riot\'s and IcEDCave\'s YouTube channels. IcEDCave, a very skilled Canadian player who had made incredible runs on unnerfed Silent clubstep, came into contact with Sailent over Discord. There, they discussed the problems Silent clubstep had, such as orb masking issues, various skips and physics problems due to 2.0 physics changes, mainly affecting vertical ship movement. Sailent agreed to update the level to fix these problems and additionally added small nerfs to the level to make it no longer impossible. The nerfs include changing timings to be possible on 60FPS and nerfing other already possible timings. They also added visibility to the 'lights-out' parts and nerfed the first ship segment to allow players to pass it with more consistency. The level received another update a few months after the initial 2.1 update. However, this new update was relatively minor, only changing decoration and using toggle triggers to mimic orb masking in the ball originally using orb masking, as proper orb masking no longer works due to game changes. Abyss of Darkness was first introduced to the public on January 13, 2018, when Exen uploaded a showcase of the layout. He mentioned it will be buffed to Top 1 difficulty and nerfed for balancing.\n\n Abyss of Darkness was hack-verified and released by Exen on October 27, 2018. As the level was illegitimately verified and the level was deemed too hard for any top players at the time, the level was forgotten by the community for two years. Two years after its release on July 17, 2020, a player named Dils thik began attempting to verify the level. On July 20, 2021, he crashed at 98%, marking the arguably worst fail in Geometry Dash\'s history at the time.[1] He once again died at 98% for the second time on July 30, 2021.[2] Around this time, Exen and CDMusic began a redecoration update of the level to ensure that it would be rate-worthy should Dils thik verify the level. However, if Dils thik verified the level before the update was complete, only finished updated parts would be included in the level, and the rest would be scrapped.\n\n On August 23, 2021, Dils thik announced through a community post on his YouTube channel that he was dropping the level due to personal issues after around 200,000 attempts.[3] The redecoration update was completed on December 2, 2021.\n\n Afterwards, the verification of this level became a race between SpeedyMuffin, Xanii, Cursed, Trick, Yossarian and many more, similar to Tartarus’ verification. However, on December 20, 2021, Exen announced that the verification race was cancelled, and he would upload the new version to the server to prevent it from being leaked.[4] He then made Abyss of Darkness an open-verification, and the first victor of the level would be the official verifier.\n\n Many players who attempted the level lost interest for the first two months of 2022. Trick returned to Abyss of Darkness around the first week of March 2022. He made quick progress, getting a new best run of 93% by the end of the week. On March 11, 2022, Trick achieved a personal best at the time of 95%. Around this time, Cursed returned to the level, quickly getting a run of 76%. On March 26, 2022, Cursed achieved a matching best of 95%, making the two tied for the level's (at the time) second-best achievement from 0%, behind Dils thik's 98%.\n\n On April 3, 2022, Cursed verified Abyss of Darkness after 54,315 attempts.[6] The level was eventually placed at #1 on the Demonlist on June 13, 2022. Opinions on the level\'s difficulty vary, while Demishio never intended the level to be Top 1, some skilled players believe it should be placed as Top 1, such as lolwut and Laniakea. The level\'s first victor, Zoink, believes it should be Top 3–4 while the second victor, Taiago, believes the level should be placed at the Top 2–3, and Trick believes that it should be placed above Slaughterhouse. The first known video of the level was posted to YouTube on 6 July 2019. The first two previews of Slaughterhouse were posted on IcEDCave\'s YouTube channel in May-June 2020. These two previews have since been set to private by IcEDCave but were reuploaded on SKOE99\'s channel. IcEDCave took the audio for the level from a CS: GO montage, which confused people because when they tried to find the song for the level, they would find the CS: GO edit of the song, go into the comment section and spam variations of 'WHO'S HERE FROM SLAUGHTERHOUSE!??!\', etc. This instance led to IcEDCave privatizing the two previews of the level. Sakupen Circles was part of the player-made \'A.S.S. trilogy\', along with Abyss of Darkness and Slaughterhouse - referencing the #1 level on the Demonlist starts with the letter A and the #2 and #3 levels with the letter S. This is the first Nine Circles level to reach the top of the Demonlist after Sonic Wave back in 2017 and the second Medium length level to reach the top, after Sakupen Hell in 2016. With freedom granted by TCTeam, Kapinapi and ViralDL applied some nerfs before the level\'s verification to make it more playable.\n\n Many people initially thought the level was impossible to beat by a single player. In April 2022, a player named Pukklez began to attempt a solo verification of Codependence. On 4 June 2023, almost three years after Codependence\n's initial verification, the level was verified solo by Pukklez after 165,000 attempts.[2] Pukklez had used the W and Up Arrow keys for two-player control, earlier mentioned. Upon the level\'s release by Cherry Team after Trick\'s verification, it faced criticism from top players concerning bugs, optimisation and balance. In response, Vernam, the level\'s host, released an updated version addressing several bugs. Konsi's part was replaced due to poor optimisation, with kivvvi stepping in. Zoink later verified this revised version. On April 7, 2019, Vernam, the leader of Cherry Team at the time, published a video on YouTube titled "Firework is literally impossible in current state (Bad noclip and Broken sync)",[2] showing the first ever preview of Firework. Vernam mentioned that the level would be decorated by Cherry Team members as the team\'s newest project. A few parts were completed two months after the first preview was posted: Lilium's first part, Konsi's part,[3] Grayrain's part,[4] and Desumari's two parts. Because the level's production was moving swiftly, Dolphy, the verifier at the time, published the first Firework preview to his channel, showcasing each of the previously listed parts.[5] i used that strings for

demon.kt

package com.example.dicoding import android.content.Intent import android.os.Bundle import android.view.Menu import android.view.MenuItem import androidx.appcompat.app.AppCompatActivity import androidx.recyclerview.widget.GridLayoutManager import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import com.example.dicoding.R import com.example.dicoding.demonlisr import java.text.FieldPosition class demon : AppCompatActivity() { private lateinit var rvDemon: RecyclerView private val list = ArrayList() private var usingGrid = false private val authorlist = ArrayList() override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.mainactivity) rvDemon = findViewById(R.id.top10) rvDemon.setHasFixedSize(true) list.addAll(getListDemon()) authorlist.addAll(getListAuthor()) showRecyclerList() } private fun getListDemon(): ArrayList { val dataName = resources.getStringArray(R.array.data_name) val dataDescription = resources.getStringArray(R.array.data_description) val dataPhoto = resources.obtainTypedArray(R.array.data_photo) val listDemon = ArrayList() for (i in dataName.indices) { val demon = demonlisr(dataName, dataDescription, dataPhoto.getResourceId(i, -1)) listDemon.add(demon) } return listDemon } private fun getListAuthor(): ArrayList { val dataName = resources.getStringArray((R.array.demonName)) val dataCreators = resources.getStringArray(R.array.creators) val dataVerifier = resources.getStringArray(R.array.verifier) val dataVictors = resources.getStringArray(R.array.victors) val dataHistory = resources.getStringArray(R.array.history) val listAuthor = ArrayList() for (i in dataName.indices) { val authors = statistic(dataName,dataCreators, dataVerifier, dataVictors,dataHistory) listAuthor.add(authors) } return listAuthor } private fun showRecyclerList() { rvDemon.layoutManager = LinearLayoutManager(this) val listDemonAdapter = ListDemonAdapter(list) rvDemon.adapter = listDemonAdapter listDemonAdapter.setOnItemClickCallback(object : ListDemonAdapter.OnItemClickCallback { override fun onItemClicked(data: demonlisr,position: Int) { val intentToDetail = Intent(this@demon, description::class.java) val positionClicked: Int = intent.getIntExtra("position_clicked", -1) intentToDetail.putExtra("key_demon", data) intentToDetail.putExtra("position_clicked", position) intentToDetail.putExtra("array", authorlist) startActivity(intentToDetail) } }) } override fun onCreateOptionsMenu(menu: Menu?): Boolean { menuInflater.inflate(R.menu.menu_main, menu) return super.onCreateOptionsMenu(menu) } override fun onOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { R.id.action_list -> { usingGrid = !usingGrid if (usingGrid){ rvDemon.layoutManager = GridLayoutManager(this, 2) }else{ rvDemon.layoutManager = LinearLayoutManager(this) } } R.id.action_grid -> { val moveIntent = Intent(this@demon, aboutme::class.java) startActivity(moveIntent) } } return super.onOptionsItemSelected(item) } }

description.kt

package com.example.dicoding import android.os.Build import android.os.Bundle import android.util.Log import androidx.annotation.RequiresApi import androidx.appcompat.app.AppCompatActivity import com.example.dicoding.databinding.DescriptionBinding class description : AppCompatActivity() { private lateinit var binding: DescriptionBinding @RequiresApi(Build.VERSION_CODES.P) override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding = DescriptionBinding.inflate(layoutInflater) setContentView(binding.root) val dataHero: demonlisr? = if (Build.VERSION.SDK_INT >= 33) { intent.getParcelableExtra("key_demon") } else { @Suppress("DEPRECATION") intent.getParcelableExtra("key_demon") } dataHero?.let { binding.tvDetailName.text = it.name binding.tvDetailDescription.text = it.description binding.imgDetailPhoto.setImageResource(it.photo) } val positionClicked: Int = intent.getIntExtra("position_clicked", -1) val authorList: ArrayList? = intent.getSerializableExtra("array") as? ArrayList if (authorList != null && positionClicked != -1 && positionClicked < authorList.size) { val selectedAuthor = authorList[positionClicked] binding.crt.text = selectedAuthor.creator binding.ver.text = selectedAuthor.verifier binding.vct.text = selectedAuthor.victor binding.hs.text=selectedAuthor.history } } }

and here is the xml after i add description, before i add description it is still fine


Источник: https://stackoverflow.com/questions/781 ... alues-file
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»