Error Android Studio - Android Studio

From night to day my android studio started to give this error, I did not mechi at all, I have the source code, msmo if I extract a new project without even having mechido of this error, before it did not work.
Error: No signature of method: com.crashlytics.tools.gradle.CrashlyticsPlugin.findObfuscationTransformTask () is applicable for argument types: (java.lang.String) values: [Debug]
Help me please

Related

Class File for SupportParentable in android.support.v4.app not found

So I just upgraded an ADT project to Android Studios, I've spent the day learning about Gradle and converting all the old imported libraries to compile lines, however I seem to be stuck on one final issue. The class:
public abstract class MainActivity extends ActionBarActivity
Is resulting in 21 Errors. The first 4 are
Error: (14, 17) error: cannot access SupportParentable class file for android.support.v4.app.TaskStackBuilder$SupportParentable not found
Error: (31, 3) error: cannot find symbol variable super
Error: (42, 3) error: cannot find symbol variable super
Error: (47, 2) error: method does not override or implement a method from a supertype
(Rest available if anyone thinks they're relevant)
I have support-v4 and appcompat-v7 compiled:
compile "com.android.support:support-v4:22.2.1"
compile "com.android.support:appcompat-v7:22.2.1"
I've synced, cleaned and ran in all combinations. I'm not sure what step I'm missing here.
Yes I do know that ActionBarActivity has been depricated in place of AppCompatActivity, however switching to AppCompatActivity results in no noticeable changes. My focus right now is to get the project running as is and I'll look into modernizing after that.
bump

General issue in Android Studio - Cannot launch AVD in emulator.

Hello,
I could not find an answer on how to preload the expected libaries so I hope anyone can help me here.
I am a complete noob In devloping with Android Studio.
I tried to write a small app and ran it with the following errors while loading th e AVD (Android 5.1 , WVGA):
Code:
Cannot launch AVD in emulator.
Output:
libGL error: unable to load driver: i915_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i915
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 49
Current serial number in output stream: 48
emulator: ERROR: virtual device name contains invalid characters
emulator: could not find virtual device named '3.2_QVGA_(ADP2)_API_22'
I think to get this solved will not be quiet diffcult for advanced users.
Thank you verry much for your help! :good:
Some infos that might help you:
OS: Kubuntu 16.04
Android Studio 2.2.3
used coding language: Java

How to build LineageOS by myself ?

I tried to compile lineageos myself according to the guidelines.: wiki.lineageos.org/devices/dipper/build
But I got an error:
Code:
ninja: error: '/mnt/aosp/code/out/target/common/obj/JAVA_LIBRARIES/WfdCommon_intermediates/javalib.jar', needed by '/mnt/aosp/code/out/target/product/dipper/dex_bootjars/system/framework/boot.prof', missing and no known rule to make it
I google the error message, and try to put the environmental variable
Code:
WITH_DEXPREOPT=false
DISABLE_DEXPREOPT=true
And I also try to put it to device/xiaomi/dipper/BoardConfig.mk. The same result.
But it didn't work.
So how can I compile smoothly (Debian 9)

A problem occurred configuring project

I am trying to compile some C++ source files into a native library using Android studio, NDK and Cmake, but upon building, I get the error:
Code:
A problem occurred configuring project ':mobile'.
> C:\Users\User\Documents\B3d\mobile\.externalNativeBuild\cmake\debug\armeabi-v7a\compile_commands.json
I went to the folder mentioned in the error and 'compile_commands.json' does not exist there. What could be the problem?
After upgrading gradle plugin, I get the error:
Code:
C:\Users\User\Documents\B3d\mobile\CMakeLists.txt : C/C++ debug|armeabi-v7a : Could not get version from cmake.dir path '"C:\Android\android-sdk\cmake\3.19.0"'.
I removed the quotes from cmake.dir path in local.properties and this error was gone, next I got another error:
Code:
exception while building Json $C:\Users\User\Documents\B3d\tv\.cxx\cmake\debug\armeabi-v7a\compile_commands.json (The system cannot find the file specified)

Android Studio 4.1.1 has built- in compilation failures

I have installed the latest Android Studio onto a new machine, and have installed Flutter plugin into the new installation. I then created a Flutter project, taking all the default settings.
After creating the project, I set up an emulator and tried to compile and run the flutter app. Unfortunately I get the following error:
Code:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\rbrown3\AndroidStudioProjects\flutter_app\android\build.gradle' line: 26
* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
> Uninitialized object exists on backward branch 142
Exception Details:
Location:
com/android/build/gradle/internal/pipeline/VariantInfoImpl.<init>(Lcom/android/build/gradle/internal/scope/VariantScope;)V @200: goto
Reason:
Error exists in the bytecode
Bytecode:
...bytecode listing omitted for brevity...
Note that I also took a look at the build.gradle file that contained the offending line . Line 26 just contains:
Code:
project.evaluationDependsOn(':app')
I did not edit that line at all. In fact, I did not change anything, not even in the main.dart file.
Have I found a bug in the Flutter plugin? Or is it an Android Studio bug? Why does a pristine installation of Android Studio fail to compile default code due to a flaw in a gradle build file??? More importantly, what is the flaw causig these compilation failures and how do I fix it?

Categories

Resources