Status Update
Comments
da...@google.com <da...@google.com>
rk...@google.com <rk...@google.com> #2
lb...@gmail.com <lb...@gmail.com> #3
rk...@google.com <rk...@google.com> #4
lb...@gmail.com <lb...@gmail.com> #5
sp...@google.com <sp...@google.com> #6
Android Studio version: 0.8.12
buildToolsVersion 21.0.1
Gradle 1.11
lb...@gmail.com <lb...@gmail.com> #7
--set-max-idx-number=<value>
Unfortunately changing the default is not a solution since the linearAlloc limit can be reached at very different levels depending on the classes hierarchy and other criteria.
In addition for most applications, moving to multidex will only help to workaround the linearalloc limit for the installation. But the application will still crash against the same limit at execution. The only working use case where I know multidex can help with linearalloc is when the apk does not contains one application but distinct pieces running in separate process.
rk...@google.com <rk...@google.com> #8
It's nice to know about that command line option. I do not see it in the output of 'dx --help', might be good to add that.
I'm not very familiar with the 'linearAlloc limit' issue outside of the context of the dexopt step. My sample app is able to run once the lower idx value is set, although I do not actually call into any of the library code that is bundled with the app. I assume it's undefined when/if the 'linearAlloc limit' will be hit in a large application on gb.
I'm a bit confused as to the platform compatibility of multidex given the 'linearAlloc limit' bug. What specific versions of Android are supported? The multidex code implies back to v4 (
sp...@google.com <sp...@google.com> #9
The linearalloc limit is reached when loading classes. At install time dexopt is loading all classes contained in the dex so it's facing the limit immediately. At execution the limit may be reached after some delay dependending of the usage you have of the packaged classes. If you face it at install time but not at execution, this means you never trigger the loading of some classes. In a real application those never loaded classes should have been shrinked away manually or by Proguard. The exception is when there are different groups of classes in the dex files used in separate process.
About multidex library supported versions I've merged recently a change to try to be clearer
The summary is that the library should work down to API 4 (Donut), but below ICS applications will probably be hit by the linearalloc limit
lb...@gmail.com <lb...@gmail.com> #10
dexOptions {
additionalParameters = ['--multi-dex', '--set-max-idx-number=40000']
}
rk...@google.com <rk...@google.com> #11
lb...@gmail.com <lb...@gmail.com> #14
@13 Attached. Also notice that I've updated the IDE and the issue still exists.
Android Studio Ladybug Feature Drop | 2024.2.2 Canary 8
Build #AI-242.23339.11.2422.12548333, built on October 24, 2024
Runtime version: 21.0.4+-12508038-b607.1 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
Kotlin plugin: K2 mode (Beta)
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 6144M
Cores: 16
Registry:
ide.instant.shutdown=false
ide.experimental.ui=true
i18n.locale=
ide.images.show.chessboard=true
Non-Bundled Plugins:
com.intellij.marketplace (242.23339.24)
Show As ... (1.0.3)
cn.jxzhang.plugin.json-formatter (1.4)
String Manipulation (9.14.1)
GenerateSerialVersionUID (3.0.3)
com.drvector (1.2.1)
com.steve.plugins.autoscroll (1.1)
com.dethlex.numberconverter (2.1.1)
izhangzhihao.rainbow.brackets (2024.2.6-241)
com.developerphil.adbidea (1.6.18)
GenerateSerializationHelpers (1.0.6)
cn.yiiguxing.plugin.translate (3.6.6)
sp...@google.com <sp...@google.com> #15
The message
10-27 04:28:28.824 11889 11889 W studio.screen.sharing: Unable to turn off display
indicates that the DisplayManagerGlobal.requestDisplayPower(0, 1)
call returned false. I'm not able to reproduce this error on any of my Pixel phones. Please let me know the Android build number your phone is running.
lb...@gmail.com <lb...@gmail.com> #16
@15 It's this one:
AP3A.241005.015
sp...@google.com <sp...@google.com> #17
The issue is indeed reproducible with AP3A.241005.015. Investigating.
sp...@google.com <sp...@google.com> #18
It turns out that the DisplayManagerGlobal.requestDisplayPower
method was not included in AP3A.241005.015. A fix is coming.
sp...@google.com <sp...@google.com> #19
The fix will be included in the next Ladybug Feature Drop canary build.
lb...@gmail.com <lb...@gmail.com> #20
@19 When? Also, I've noticed a different issue with mirroring, which is more about adb itself with Android 15: It can sometimes fail to reconnect for cases that it worked fine before.
I've reported this here:
Please fix this. It's much more annoying, and it affects not just mirroring this time...
an...@google.com <an...@google.com> #21
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Canary 9
- Android Gradle Plugin 8.8.0-alpha09
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
STEPS TO REPRODUCE:
1. Just use the mirror feature of the IDE, with the feature of turning off the display.
The bug is that it doesn't turn off the display anymore.
I can't put screenshot because you won't see anything special there.
I can say that on ScrCpy it still works fine.
------------------
Studio Build:
Version of Gradle Plugin:
Version of Gradle:
Version of Java:
OS:
Android Studio Ladybug Feature Drop | 2024.2.2 Canary 6
Build #AI-242.23339.11.2422.12480590, built on October 10, 2024
Runtime version: 21.0.4+-12457126-b607.1 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
Kotlin plugin: K2 mode (Beta)
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 5120M
Cores: 16
Registry:
ide.instant.shutdown=false
ide.experimental.ui=true
i18n.locale=
ide.images.show.chessboard=true
Non-Bundled Plugins:
com.intellij.marketplace (242.23339.24)
Show As ... (1.0.3)
cn.jxzhang.plugin.json-formatter (1.4)
String Manipulation (9.14.1)
GenerateSerialVersionUID (3.0.3)
com.drvector (1.2.1)
com.steve.plugins.autoscroll (1.1)
com.dethlex.numberconverter (2.1.1)
izhangzhihao.rainbow.brackets (2024.2.6-241)
com.developerphil.adbidea (1.6.18)
GenerateSerializationHelpers (1.0.6)
cn.yiiguxing.plugin.translate (3.6.6)