/r/AndroidStudio

Photograph via snooOG

Here at /r/Android Studio, we provide information regarding the Android based IDE - Android Studio. Let it be Tutorials, Update Change Logs, Projects that users have created or anything else, you will find it here.

Lets all make this a dedicated community where everyone shares and learns!

For anything related to Android Studio IDE and related material, you will find it here.


Rules (at a glance)

  • Any post must have some kind of material regarding the development of Android Studio / Android itself.

Android Studio Information

Related Android SubReddits :


Attention:

The moderators of /r/androidstudio reserve the right to remove any "bandwagon" or direct reply posts. If you have a response to an existing post, reply in the comments section to avoid having your post removed.

/r/AndroidStudio

9,636 Subscribers

1

Get capture 2 code or how to interact with the MTY8008 gimbal

Hello! I'm working on a cam app and I need to connect my Tomato MTY8008 gimbal to the app, but it only works with all its functions on Capture2. With the OpenCamera app the gimbal was also recognized, but I can only operate the camera. It doesn't have functions like object or face tracking. Is there a way to find out how Capture2 interacts with the gimbal so I can add those codes to my app?

0 Comments
2024/11/03
03:20 UTC

0

[College-Level Mobile App Development, Java in Android Studio] How to populate listview with filtered results (foundStudent?) (Listed: FilterStudents.java, FilterBaseAdapter, DatabaseHelper) ALL STUDENT NAMES ARE MADE-UP

0 Comments
2024/11/02
23:47 UTC

1

How do i remove the white circles around my apps in the ladybug version?

0 Comments
2024/11/02
17:13 UTC

1

Gemini location blocked

Hi I have installed Android Studio a year ago and Gemini worked fine but half a year ago and warning message popped up

"apologies Gemini and Android Studio is currently not available in your country"

I have not switched country and my country is on the supported list so my question is has anyone else had that problem and does anyone know how to fix it. I've worked around with openai and Microsoft but both of those are a Nightmare and don't yield useful result anymore. And I really need an AI cuz yeah I learned C and not whatever magic kotlin it's using.

Thanks in advance and I hope this is the right threat for it otherwise just tell me

0 Comments
2024/11/02
14:38 UTC

1

Custom CA Cert due to company proxy SSL inspection for emulator

Our org is rolling out SSL inspection for our proxy (Zscaler) and we're having some issues with getting Android Studio to trust the Root CA cert so apps can be tested in the emulator.

The error that this is manifesting as is:

failed with exception: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

We've tried using the java keytool to insert the cert into the Android Studio cacerts but it has not made a difference (which was what Zscaler's documentation recommended doing). Installing the SSL certificate onto the emulator itself appears to work for the browser, but not for the app being tested.

There aren't any expected intermediate certs either.

SSL pinning is not in play either, and this is affecting multiple teams working on different apps entirely.

The unfortunate thing, is that Zscaler cannot do process-based bypasses for SSL inspection, and cannot bypass the proxy by process for macOS either (Our org is primarily using macOS for developers).

We've been able to insert the cert into many other tools (Docker, npm, python requests, etc) without issue.

Has anyone had luck getting the emulator/Android Studio to trust a custom CA cert?

0 Comments
2024/11/02
03:56 UTC

1

Unresponsive AVD on Apple Silicon

My problem is simple but I have found little to nothing on it, and nothing I've tried has resolved it. When I launch a virtual device with AVD, it loads and brings me to the android home screen no problem. But from there, it is totally unresponsive - can't click apps, can't open application menu, nothing. If I build and run an app on the device, it installs and opens but I can't interact with the app at all, or open the multitasker.

This issue is occurring on my Macbook Pro with M1 Pro processor, running Sonoma 14.6.1, with the latest version of Android Studio, Ladybug 2024.2.1 Patch 2. I specify Apple Silicon because the latest version of AS on my windows 10 machine runs AVD devices just fine.

I have tried totally reinstalling AS and AVD, changing versions of AVD, ensuring AVD is up to date, trying different devices and different SDKs, to no avail.

I unfortunately don't recall which version of AS I initially had installed, but before updating to this latest version of ladybug the emulator worked perfectly fine.

If anyone has had this issue, or has any suggestions, I'm all ears. And please let me know if there's any further information I can provide to make the issue clearer. Thank you!

0 Comments
2024/11/01
18:19 UTC

1

[College Mobile App Development, Java Android Studio] Why does my logcat never receive the Log.d message when I click the button for filterFilterListener?

1 Comment
2024/11/01
17:54 UTC

1

Gradle blugin problem in android studio

Hi I have installed the lady bug version of Android studio and it's not working and it's shows that's the problem is in the gradle and I installed the latest verios of it and same problem

0 Comments
2024/11/01
14:30 UTC

3

Build fails in every few months on the same project.

It is really annoying how much I have to spend in resolving the Build issue every 3-4 months just to change few lines in a project.
I have few personal projects and every now and then want to change some features but every time I open Android studio, firstly it updates the 'Gradle' then the previously working project fails at 'build.'
Edit: build error= Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @ 781cd14b

0 Comments
2024/11/01
11:18 UTC

1

Virtual device doesn't launch, no errors (windows)

As the title says, virtual device won't launch, I have tried with a couple different hardware and OS combinations and restarted everything multiple times, this is a brand new installation on a new PC, I didn't get any errors just a flashing launching popup and than back to the devices screen

1 Comment
2024/10/31
16:51 UTC

1

compile error issue

asdawd

package com.example.myapplication

import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        
enableEdgeToEdge
()
        setContentView(R.layout.
activity_main
)
        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.
main
)) { v, insets ->
            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
            insets
        }
    }
    String s = numbah.getText().toString();
    butt = findViewById(R.id.butt);
    Button butt;
    EditText numbah;
    numbah = findViewById(R.id.numbah);
    public void callBitch(View vussy){
        Intent intent = new Intent(Intent.
ACTION_CALL
);
        
intent
.setData(Uri.parse("tel:" + numbah.getText().toString()));
        startActivity(
intent
);
    }
}
1 Comment
2024/10/31
05:41 UTC

2

SDK problem

I did install the newest version now few times it is not in the system setting like in the tutorial . Ialso went to tool sdk manager it is installed but when I go to Terminal and enter adb -version it won't show up it was I also tried to put it in . I also added it to the path to make sure but it seems to not be there it should be automatically installed . I then evne installed it in C:\Android and it seems to be ok in the studio but it doesn't seems to find it in the terminal

2 Comments
2024/10/29
14:39 UTC

1

Force AutoCompleteTextView Dropdown Direction

Hello! I am fairly new to Android Development and have picked up a few quirks here and there that allows me to get started on an app idea I've been having for quite some time.

I am currently trying to use AutoCompleteTextView in a form activity for the user to fill out, which is placed in a ScrollView for easier access. However, it seems that the AutoCompleteTextView dropdown hints always show up below the text field, which hides it right behind the soft keyboard for some reason. I even placed the AutoCompleteTextView at the very bottom of the screen and it still placed the dropdown below the text field.

My question is, is it possible to force the dropdown to display above the input text field? I know this is possible normally by formatting, but I can't seem to get it to work in the ScrollView. I scoured the Internet for answers, included but not limited to: setting the height to an absurd number (this only seems to fill up the screen and the text field), setting the offset and anchor manually (this only moves it and leaves a weird space when there are not enough autocomplete hints), setting the manifest to adjustPan|adjustResize|stateHidden (does nothing), setting these options manually (does nothing), etc.

I'm running out of ideas and it seems that there aren't enough solutions on this, or I'm just missing something obvious. I don't want to simply translate it up, I want it to work as it normally does when the dropdown is above the text field. It's possible, I just don't know how to force the direction in my code.

Thank you!

0 Comments
2024/10/29
07:08 UTC

1

Android Studio- Camera permissions on a laptop without physical camera

Hello everyone.

We got a college assignment to create an app that uses a camera. I don't have a physical camera on my laptop but I've heard if you don't have one Android studio will create an emulated one (looks like a pixelated drawing). My problem is that nothing is working.

The professor said we had to install Cordova which I did. I created a Cordova project and built the browser and android platforms. I have done all coding in Visual Studio Code.

When I run the emulator everything works fine but the minute I want to start the camera to take a picture it says that I have to check permissions. I have done everything. I tried with this code <uses-permission android:name="android.permission.CAMERA" /> in AndroidManifest.

I also tried in Device manager--> Advanced settings--> Camera front and back Emulated.

I tired setting the permissions in Windows camera permissions. I don't have a lot of experience with this kinda coding since my college is mainly focused on graphic design but I have to pass this course. I am so lost and I've cried so many times because I have literally tried everything.

I used Chatgpt (I know sue me) to make a code just to see if my camera works. My friend and I have almost the exact same code but his works because he does have a physical camera. Maybe the code isn't right but I have no idea because we didn't code a lot.

I tried debugging it on my phone and that is the only thing it works.

Please help me I beg of you!

Here is the code in html:

<!DOCTYPE html>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->
<html>
    <head>
        <meta charset="utf-8">
        <!--
        Customize this policy to fit your own app's needs. For more guidance, please refer to the docs:
            https://cordova.apache.org/docs/en/latest/
        Some notes:
            * https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
            * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
                * Enable inline JS: add 'unsafe-inline' to default-src
        -->
        <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">
        <meta name="format-detection" content="telephone=no">
        <meta name="msapplication-tap-highlight" content="no">
        <meta name="viewport" content="initial-scale=1, width=device-width, viewport-fit=cover">
        <meta name="color-scheme" content="light dark">
        <link rel="stylesheet" href="css/index.css">
        <title>Aplikacija</title>
    </head>
    <body>
        <div class="app">
            <h1>Apache Cordova</h1>
            <div id="deviceready" class="blink">
                <p class="event listening">Connecting to Device</p>
                <p class="event received">Device is Ready</p>
            </div>
        </div>
       
        <div class="kamera">
            <h2> Pokreni kameru </h2>
            <button id="startButton">Open camera</button>
            <video id="videoElement" autoplay></video>
            <button id="captureButton" style="display: none;">Take a pic!</button>
            <img id="capturedImage" src="" alt="Snimljena Slika"/>
        </div>
        <script src="cordova.js"></script>
        <script src="js/index.js"></script>
    </body>
</html>


<!DOCTYPE html>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at


    http://www.apache.org/licenses/LICENSE-2.0


    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->
<html>
    <head>
        <meta charset="utf-8">
        <!--
        Customize this policy to fit your own app's needs. For more guidance, please refer to the docs:
            https://cordova.apache.org/docs/en/latest/
        Some notes:
            * https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
            * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
                * Enable inline JS: add 'unsafe-inline' to default-src
        -->
        <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">
        <meta name="format-detection" content="telephone=no">
        <meta name="msapplication-tap-highlight" content="no">
        <meta name="viewport" content="initial-scale=1, width=device-width, viewport-fit=cover">
        <meta name="color-scheme" content="light dark">
        <link rel="stylesheet" href="css/index.css">
        <title>Aplikacija</title>
    </head>
    <body>
        <div class="app">
            <h1>Apache Cordova</h1>
            <div id="deviceready" class="blink">
                <p class="event listening">Connecting to Device</p>
                <p class="event received">Device is Ready</p>
            </div>
        </div>
       
        <div class="kamera">
            <h2> Pokreni kameru </h2>
            <button id="startButton">Open camera</button>
            <video id="videoElement" autoplay></video>
            <button id="captureButton" style="display: none;">Take a pic!</button>
            <img id="capturedImage" src="" alt="Snimljena Slika"/>
        </div>
        <script src="cordova.js"></script>
        <script src="js/index.js"></script>
    </body>
</html>

And here is in .js (some comments are in my language):

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

// Wait for the deviceready event before using any of Cordova's device APIs.
// See https://cordova.apache.org/docs/en/latest/cordova/events/events.html#deviceready
document.addEventListener('deviceready', onDeviceReady, false);

function onDeviceReady() {
    // Cordova is now initialized. Have fun!

    console.log('Running cordova-' + cordova.platformId + '@' + cordova.version);
    document.getElementById('deviceready').classList.add('ready');
}

// Dobavljanje elemenata iz DOM-a
const videoElement = document.getElementById('videoElement');
const startButton = document.getElementById('startButton');
const captureButton = document.getElementById('captureButton');
const capturedImage = document.getElementById('capturedImage');

// Funkcija za pokretanje kamere
async function startCamera() {
    try {
        const stream = await navigator.mediaDevices.getUserMedia({ video: true });
        videoElement.srcObject = stream; // Postavljanje video stream-a kao izvor videa
        captureButton.style.display = 'block'; // Prikaz dugmeta za snimanje
    } catch (error) {
        console.error("Error while accessing camera: ", error);
        alert("Can't open camera. Check fo permissions.");
    }
}

// Funkcija za snimanje slike
function captureImage() {
    const canvas = document.createElement('canvas'); // Kreiranje canvas elementa
    const context = canvas.getContext('2d');
    canvas.width = videoElement.videoWidth; // Postavljanje širine na video širinu
    canvas.height = videoElement.videoHeight; // Postavljanje visine na video visinu
    context.drawImage(videoElement, 0, 0, canvas.width, canvas.height); // Prenos slike sa videa na canvas

    const imageData = canvas.toDataURL('image/png'); // Konvertovanje canvas-a u sliku
    capturedImage.src = imageData; // Postavljanje src-a za prikaz snimljene slike
    capturedImage.style.display = 'block'; // Prikazivanje snimljene slike
}

// Dodeljivanje događaja dugmadi
startButton.addEventListener('click', startCamera); // Kada se klikne na dugme, pokreni kameru
captureButton.addEventListener('click', captureImage); // Kada se klikne na dugme za snimanje, snimi sliku

document.addEventListener('deviceready', function() {
    var permissions = cordova.plugins.permissions;

    permissions.requestPermission(['android.permission.CAMERA', 'android.permission.WRITE_EXTERNAL_STORAGE'], function(status) {
        if(status.hasPermission) {
            console.log('Permission for camera is accepted.');
        } else {
            console.error('Permission for camera is not accepted.');
        }
    }, function() {
        console.error('Error while checking permissions');
    });
}, false);
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */


// Wait for the deviceready event before using any of Cordova's device APIs.
// See https://cordova.apache.org/docs/en/latest/cordova/events/events.html#deviceready
document.addEventListener('deviceready', onDeviceReady, false);


function onDeviceReady() {
    // Cordova is now initialized. Have fun!


    console.log('Running cordova-' + cordova.platformId + '@' + cordova.version);
    document.getElementById('deviceready').classList.add('ready');
}


// Dobavljanje elemenata iz DOM-a
const videoElement = document.getElementById('videoElement');
const startButton = document.getElementById('startButton');
const captureButton = document.getElementById('captureButton');
const capturedImage = document.getElementById('capturedImage');


// Funkcija za pokretanje kamere
async function startCamera() {
    try {
        const stream = await navigator.mediaDevices.getUserMedia({ video: true });
        videoElement.srcObject = stream; // Postavljanje video stream-a kao izvor videa
        captureButton.style.display = 'block'; // Prikaz dugmeta za snimanje
    } catch (error) {
        console.error("Error while accessing camera: ", error);
        alert("Can't open camera. Check fo permissions.");
    }
}


// Funkcija za snimanje slike
function captureImage() {
    const canvas = document.createElement('canvas'); // Kreiranje canvas elementa
    const context = canvas.getContext('2d');
    canvas.width = videoElement.videoWidth; // Postavljanje širine na video širinu
    canvas.height = videoElement.videoHeight; // Postavljanje visine na video visinu
    context.drawImage(videoElement, 0, 0, canvas.width, canvas.height); // Prenos slike sa videa na canvas


    const imageData = canvas.toDataURL('image/png'); // Konvertovanje canvas-a u sliku
    capturedImage.src = imageData; // Postavljanje src-a za prikaz snimljene slike
    capturedImage.style.display = 'block'; // Prikazivanje snimljene slike
}


// Dodeljivanje događaja dugmadi
startButton.addEventListener('click', startCamera); // Kada se klikne na dugme, pokreni kameru
captureButton.addEventListener('click', captureImage); // Kada se klikne na dugme za snimanje, snimi sliku


document.addEventListener('deviceready', function() {
    var permissions = cordova.plugins.permissions;


    permissions.requestPermission(['android.permission.CAMERA', 'android.permission.WRITE_EXTERNAL_STORAGE'], function(status) {
        if(status.hasPermission) {
            console.log('Permission for camera is accepted.');
        } else {
            console.error('Permission for camera is not accepted.');
        }
    }, function() {
        console.error('Error while checking permissions');
    });
}, false);
1 Comment
2024/10/28
18:46 UTC

1

Android studio crashes after disconnecting a monitor

I work on a macbook with a monitor connected. As soon as I disconnect my monitor android studio goes into not responding state. Is there a way to fix this?

0 Comments
2024/10/28
14:07 UTC

1

Unresolved Reference "fontSize"

trying to follow this tutorial here:

https://developer.android.com/codelabs/basic-android-kotlin-compose-text-composables?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-1-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-text-composables#5

and fontSize is highlighted in red and doesn't give me any options of what to import.

@Composable
fun GreetingText(message: String, modifier: Modifier = Modifier) {
    Text(
        text = message
        fontSize = 100.sp
    )
}
1 Comment
2024/10/27
14:57 UTC

1

Generate signed apk

Somehow in android studio on windows when going to build my build app builds/ apks is greyed out also going to tools and flutter i can not open it in a new window therefore i can not generate a signed apk i tried to find a solution but i am stuggling to figure out how to do it and in general how the app upload and creation process works i can create an apk abd app bundle over build flutter and then but can not sign it because no key Any help is much appreciated also resources would be great i tried dlutter and android studios pages did not help Thanks in advance

1 Comment
2024/10/26
20:48 UTC

1

Any way to emulate older Android versions behind 2.3? (+Honeycomb)

Heya, I'm extremely new to this stuff and I wanted to use Android Studio and the device manager to experiment with older Android versions, as it is a hobby of mine.

However, it appears the oldest version I can emulate is Gingerbread. Android 2.1, 2.2 and 3.0 AVDs instantly terminate when starting, and I'm going to safely assume it happens with Cupcake and Donut as well. I'm not technical enough to figure out a reason why but I'll assume it's something related to the mentioned versions being "armeabi", while all the ones that work are "x86".

Would it be possible to emulate these devices on my x86 computer? If so, how?

0 Comments
2024/10/26
15:26 UTC

0

Waiting for Debugger more than half of debug sessions.

This bug hits again...
I have a Pixel 8, so either Google is messing up their phones or Android Studio is broken.

The issue is that over half the times I click on the debug button, the app will get installed and start running with the message "Waiting for Debugger". It stalls and Android Studio never connects, I have to kill and retry several times.

Obviously, this is a very bad look for Google. How do I fix this?

0 Comments
2024/10/26
02:16 UTC

1

I need some assistance...I'm stoopid

I'm trying to create a very simple app with overlay permissions. The apps only functionality is to have a thin straight, long, black line appear on screen and over apps. The line needs to be moveable, rotations and extending, but always stays a straight line.

I have the main script pretty much made myself, but I have no clue on how to implement it or make it run.

I'm currently on Android studio, any help would be greatly appreciated.

1 Comment
2024/10/25
08:26 UTC

1

Channel is unrecoverably broken and will be disposed!

I am making an app that connects 2 users together and allows them to chat with each other, in the class where you can connect with the user I have a button that when clicked opens the chat activity where you send and receive messages, the button was working perfectly and I had no errors until I added in the chat functionality where it created a chat dataset in my firestore database where the chats would be stored. Now when the button is clicked the app crashes and I get this "Channel is unrecoverably broken and will be disposed!" error in my logcat, and I don't know what this means or how to fix it.

0 Comments
2024/10/23
03:03 UTC

1

Every project I make has an "deprecated gradle" error

The capabilities of Android Studio are great, but my god is this IDE infuriating when you have errors. I have been trying to build my project for nearly two hours. Last project took me an hour to build. Every single time its just trouble shooting for hours trying to trace down some "outdated gradle" with no context. Running commands for additional information gives you the response thats basically "Yep. That sure is an outdated gradle error!"

Best solution at this point just seems to be to delete the entire install and start again

0 Comments
2024/10/23
02:39 UTC

1

compiling issues with ladybug ?

Got ladybug, got classic UI plugin, synced it, rebuild it, tried to run it on physicaly device and im getting this ??

Does anyone know how to fix this ? Tried KSP instead of KAPT and it wouldnt work either, that gave me totally different errors so thats when i upgraded to ladybug and here i am....

Honestly thinking of just going back to iguana im sick of losing time to stupid updates :/

java.lang.IllegalAccessError: superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler (in unnamed module u/0x5c2907bd) cannot access class com.sun.tools.javac.main.JavaCompiler (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.main to unnamed module u/0x5c2907bd

at java.base/java.lang.ClassLoader.defineClass1(Native Method)

at java.base/java.lang.ClassLoader.defineClass(Unknown Source)

at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)

at java.base/java.net.URLClassLoader.defineClass(Unknown Source)

at java.base/java.net.URLClassLoader$1.run(Unknown Source)

at java.base/java.net.URLClassLoader$1.run(Unknown Source)

at java.base/java.security.AccessController.doPrivileged(Unknown Source)

at java.base/java.net.URLClassLoader.findClass(Unknown Source)

at java.base/java.lang.ClassLoader.loadClass(Unknown Source)

at java.base/java.lang.ClassLoader.loadClass(Unknown Source)

at org.jetbrains.kotlin.kapt3.base.KaptContext.<init>(KaptContext.kt:55)

at org.jetbrains.kotlin.kapt3.KaptContextForStubGeneration.<init>(KaptContextForStubGeneration.kt:38)

at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.contextForStubGeneration(Kapt3Extension.kt:278)

at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.analysisCompleted(Kapt3Extension.kt:157)

at org.jetbrains.kotlin.kapt3.ClasspathBasedKapt3Extension.analysisCompleted(Kapt3Extension.kt:87)

at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$invokeExtensionsOnAnalysisComplete(TopDownAnalyzerFacadeForJVM.kt:104)

at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:114)

at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(TopDownAnalyzerFacadeForJVM.kt:77)

at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:256)

at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:247)

at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:115)

at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.kt:247)

at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:87)

at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:43)

at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:165)

at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:50)

at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:104)

at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:48)

at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:101)

at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:463)

at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:62)

at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.doCompile(IncrementalCompilerRunner.kt:477)

at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:400)

at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileNonIncrementally(IncrementalCompilerRunner.kt:281)

at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:125)

at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:657)

at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:105)

at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1624)

at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)

at java.base/java.lang.reflect.Method.invoke(Unknown Source)

at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)

at java.rmi/sun.rmi.transport.Transport$1.run(Unknown Source)

at java.rmi/sun.rmi.transport.Transport$1.run(Unknown Source)

at java.base/java.security.AccessController.doPrivileged(Unknown Source)

at java.rmi/sun.rmi.transport.Transport.serviceCall(Unknown Source)

at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)

at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)

at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(Unknown Source)

at java.base/java.security.AccessController.doPrivileged(Unknown Source)

at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)
1 Comment
2024/10/23
00:58 UTC

1

Android Studio is creating non-functional scripts by default.

I am at the end of my rope here with this piece of software.

I fully believe it is incredibly powerful because I have seen it used before, and I have used it before on the very machine I'm writing from today, but for whatever reason, it has stopped working.

I opened a new project and waited for Gradle to finish syncing, and then I clicked the Play button to see it run.

It does not run.

I have a short video demonstration of it.

https://youtu.be/3tgjEgNC7bk

9 Comments
2024/10/22
01:25 UTC

2

New to Android Studio, and to coding. Shipping something each Friday starting today. Any suggestions, best practices, or general enquiries welcome.

Since I'm entirely new to coding, I'm learning how to build an existing app I love using on iOS from scratch for android.

Edited: You can follow for updates here : https://twitter.com/AssemblyLineSt

0 Comments
2024/10/21
15:11 UTC

5

how to change to old UI on the Ladybug version ?

I cannot stand the new UI in ladybug, I like the words over icons for telling me which each tab is down the right hand side and the fact i have to press hamburger menu just to see the other options across the top of the program like file, edit, help and so on, it reminds me of pycharm and i hate pycharm UI.

Anyway how do i change UI in this new android studio or am i better off just redownloading an older one ?

3 Comments
2024/10/20
19:23 UTC

1

Help Exporting Local HTML to Unsigned APK

Hey everyone!

I'm almost done my current RPG Maker MV project and am trying to figure out how to convert the exported local HTML to an unsigned APK (it's a personal project with no plans to export to the Play Store). I haven't been able to find a viable tutorial and don't have the technical chops to figure out Android Studio on my own. 😅 I know it has something to do with Webview, at least!

I experimented with the free version of the Website 2 APK Builder app, which worked well... until I found out the app only works for a limited time after creation with the free version.

If anyone has any advice or resources, I'd be thrilled to hear from you! Thanks in advance!

0 Comments
2024/10/19
23:53 UTC

Back To Top