4

Here is the error that I am facing while using chaquopy with android studio

Whenever I try to build apk, then it opens values.xml and points to a line

Error is on line 105 :

<declare-styleable name="ColorStateListItem">
    <!-- Base color for this state. -->
    <attr name="android:color"/>
    <!-- Alpha multiplier applied to the base color. -->
    <attr format="float" name="alpha"/>
    <attr name="android:alpha"/>
    <!-- Perceptual luminance applied to the base color. From 0 to 100. -->
    <attr format="float" name="lStar"/>
    <attr name="android:lStar"/>
</declare-styleable>

I am not able to post full values.xml file because of words limit. comment down if you need full file.

Please help me out.

Prachi Kakkad
  • 41
  • 1
  • 5
  • I think the message indicates that the error is between lines 105 and 114. Can you edit your question to include those 10 lines? – mhsmith Dec 01 '21 at 16:11
  • Ok thx for your response I added those 10 lines. You may check it And please give me any solution for this – Prachi Kakkad Dec 02 '21 at 04:02
  • I faced this problem before when try to set `sdkversion:31`. The reason is about dependencies version(`android.test.ext`? I don't remember exactly). I recommand you try version change of dependencies in build.gradle . – liveAnyway Dec 02 '21 at 04:50
  • Does this answer your question? [Message "error: resource android:attr/lStar not found"](https://stackoverflow.com/questions/69033022/message-error-resource-androidattr-lstar-not-found) – mhsmith Dec 02 '21 at 11:16
  • Or this: [Resource linking fails on lStar](https://stackoverflow.com/questions/69021225/resource-linking-fails-on-lstar) – mhsmith Dec 02 '21 at 11:19
  • Thx mhsmith , https://stackoverflow.com/questions/69021225/resource-linking-fails-on-lstar This may help me but the issue is I am using chaquopy which uses SDK version 30 and according to this post shared by you, Istar needs SDK version 31. So please tell me how can I download chaquopy SDK for version31 – Prachi Kakkad Dec 03 '21 at 14:39
  • Thx to you also live anyway, let me try your suggestion then I will inform you it worked or not – Prachi Kakkad Dec 03 '21 at 14:42
  • Chaquopy does not require SDK version 30. The current version (Chaquopy 10.0.1) supports any SDK version between 16 and 31. – mhsmith Dec 04 '21 at 11:31

1 Answers1

2

uninstall your old version of android studio

install the latest version from android studio site

https://developer.android.com/studio

it worked for me :-)