faulty "isAndroid" behavior on Desktop
See original GitHub issueHello!
Expected behavior
isAndroid
returns true only if running on Android
Actual behavior
isAndroid
returns true
on Desktop if there is an Android SDK on the classpath
Steps to reproduce
Add Android SDK to the classpath and run with OpenJDK. PlatformDependent.isAndroid()
returns true
.
Minimal yet complete reproducer code (or URL to code)
@GrabResolver(name='google', root='https://maven.google.com')
@Grapes([
@Grab(group='io.netty', module='netty-common', version='4.1.11.Final'),
@Grab(group='com.google.android', module='android', version='+'),
])
import io.netty.util.internal.PlatformDependent
ClassLoader.scl = this.class.classLoader
assert PlatformDependent.isAndroid() == false
Netty version
Any, including the latest 4.1.19.Final
JVM version (e.g. java -version
)
Any Desktop JVM
OS version (e.g. uname -a
)
Any
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Unexplained Windows or software behavior may be caused ...
Resolution. To resolve this problem, try to identify and remove deceptive software from your computer. To do this, use one or all the...
Read more >How to Fix Android Apps Not Working on Windows 11
Android apps could break on your Windows 11 PC for many reasons. Here's a guide to help you fix most of these issues....
Read more >Detection and Visualization of Android Malware Behavior
This work focuses on monitoring Android applications' suspicious behavior at ... problem of understanding the Android application behavior in several ways.
Read more >Why is Android Studio still such a gruesome embarrassment?
One problem, of course, is that Android Studio was not built from scratch; it's based on the long-in-the-tooth IntelliJ IDEA platform, ...
Read more >Android studio isn't opening on Windows - Stack Overflow
Open Start menu > computer > System Properties > Advanced System Properties In the Advanced tab > Environment Variables, add new system variable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be fixed by https://github.com/netty/netty/pull/7679
Related to https://github.com/netty/netty/pull/7679