Im actually trying to debug the 3rd app on Android studio. From now what i did, i extracted the jar for classes for readable format .
And converted that jar to .Java source file use Jadx
And i Imported them on Android studio, now I'm trying to debug the app, Before that as we now, need to add set debugging True, so I'm trying to edit the source , but it only shows the FILE READ-ONLY
Let me know the how to debug now !
Related
I there:
I am working in the last version of Android Studio, and I have the next problem. I am generating code (.java classes), so my code is generated outside Android studio and copied into the folder of the project. When I try to run the code, it shows the following message
error: cannot find symbol class XXXXX
Where XXXXX is a class that exists (I tried with other classes and it happens the same). The class is well defined, its visible by Android Studio but it still fails.
The code is generated, so it is copied directly into the folder of the project and I think it is the problem.
What I tried to do: (according to other answers).
Rebuild the project.
Close and open Android studio.
File - Sync with file explorer.
File - Sync Project with Gradle Files.
File - Invalidate Cache Restart.
And those solutions do not work.
However, this works:
Create a class using Android studio and now I can generate the class and replace the file. Apparently, Android Studio (or Gradle) is unable to recognize a file created outside Android Studio.
What I can do?.
I need to create many classes so I can't create each file manually.
Is there are an internal database?.
I am using Android Studio for my Flutter program, and I want to include a dart file like what the Flutter Gallery app does, such that I use it as an asset instead of it being part of my program. How can I do that? A workaround is to use a file extension like 'txt' instead of 'dart', but that is not great.
I tried marking the file as plain text by right-clicking on the file, that does not help. I can bear the error warnings, but Android Studio does not allow me to reload the program if that file cannot be compiled (shown below).
There is an option for analysis_options.yaml
analyzer:
exclude:
- "path/to/the/file/to/exclude.dart"
- "or/pattern/**/*.dart
but it's not fully working yet.
See
https://github.com/dart-lang/sdk/issues/34053
https://github.com/dart-lang/sdk/issues/25551
for more details.
I have an Android Studio project and the Gradle script generates some Java source files on the fly.
I wish to know if there is a way to allow the editor's autocomplete to works with theses generated files?
Sure, add the directory where you generate to as a source directory for generated sources.
I have got some open source projects which I want to have a try. But I want to use Eclipse if the project was made using eclipse; otherwise I would like to use Android Studio.
So how can I know by viewing the source code about the IDE used for the development of a particular project? Is there any metadata in any file which stores the IDE information?
I believe that Android Studio sometimes includes gradle related files. That's how I would check.
I'am developing a android application in Visual Studio and the Xamarin c# monodroid development tools.
I have some external JAR files that i embed into my projects. Most of the project work fine but when i try to embed the JAR from Yocto (yocto android lib) and place the YoctoAPI.jar into a new android project and link it as "EmbeddedJar" the compiler fails with the exception "generator.exe" exited with code -1073741819.
This is a NULL pointer exception in the generator and searching the net i found some people who have the same problem and tells me that obfuscated code is not supported (that i understand). But how can i find the obfuscated code in the JAR file? Or is there a other problem that i'am not seeing.
If i need to post more project settings or envirioment/system parameters, please let me know
Such issues with Visual Studio can be fixed by repairing it.
You need to repair Visual Studio. Go to Control Panel -> Programs. Then select your version of Visual Studio you are using and press "Change"(or right click it and press "Change"). When the setup appears, click "Repair".
I got same error while create binding project, in my case the problem is in resource file, you need to add the jar file and resource file like,
bin - contains all jar files,
res - contains all resource files,
and add the compressed 'bin' folder in your project and build works fine.