My android app will not longer compile after upgrading to Arctic Fox. In the idea.log file I find the following warning: "GradleBuildOutputUtil.kt - Failed to read Json output file from C:\EJW\Programming\Projects\DrillSelector\DrillSelector\app\build\outputs\apk\debug\output-metadata.json. Build may have failed."
The Build Output window in Android Studio gave this error:
"java.lang.IllegalArgumentException: couldn't make a guess for com.xxxx.DrillSelector.databinding.FragmentMainBindingImpl" followed by
"Cause: couldn't make a guess for com.xxxx.DrillSelector.databinding.FragmentMainBindingImpl".
The error from the idea.log file makes me think that the new version of Android Studio wants to find a file that the older version of Android Studio does not make but I am at loss as to what to do a bout it. Any suggestions?
Thanks.
Related
I'm using ubuntu and I am coding with flutter in android studio. When my run my first app, android studio give me this error.
I am already tried what error text told me.
Here's the error
I have followed the steps [here] (Android Studio is slow (how to speed up)?) in order to try and make my android studio faster.
after doing so android studio won't even launch .
I have tried the command ./studio.sh from the terminal but I am getting this
error: Error: Could not find or load main class Dsun.java2d.d3d=false
Fixed it by:
going to dir home/username/AndroidStudiox.x/config/studio.vmoptions
I had added a couple of lines there before
I edited the file and deleted it's contents. and I was able to launch android studio again
I received an update to android SDK. After the update, when I open a project, Android Studio recommends to update Android Gradle to v 2.3.0 and Gradle to v 3.3. I updated the project as recommended. After that I found an ugly red line under the appcompat-v7:25.2.0' (see pic).
The error, according to android studio, is that I am mixing versions of support libraries (v 25 and 24), but I didn’t find any support library of v24. I tried to build a signed apk, but app build failed (using V2 / full apk signature), so I searched the web and I found one solution to this problem by adding this line to the build.gradle: multiDexEnabled true. Adding that line fixed the problem of generating signed apk, although the red line of error was still there, it didn’t get rid of it.
Then I installed the signed apk on two phones, one running Android 6.0 and the other one is running Android 4.4.2. The app runs smoothly on Android 6.0 and crashes on start on Android 4.4.2 (I set minSdkVersion to 19).
My questions are: how can fix that error in the gradle permanently? Is adding the line “multiDexEnabled” to gradle really needed? How can I run my app on android 4.4.2 without crashing?
I'm had the same issue, just add these lines:
compile "com.android.support:animated-vector-drawable:${supportLibVersion}"
compile "com.android.support:mediarouter-v7:${supportLibVersion}"
In your case supportLibVersion is 25.2.0.
What is the proper way to open cocos2d-x-3.7 in Android Studio?
I tried:
Open existing project in Android Studio project > Choose proj.android-studio directory (In another attempt, I also tried to choose the base directory MyGame)
Run
Error: couldn't find "libcocos2dcpp.so.
Moreover, it also does Classes directory in the Project.
Android Studio is only partially supported in cocos2d-x 3.7 and 3.8. With the default project you will only be able to run your app without debugging using Android Studio.
Prior to running your app in Android Studio you will have to compile using the Android Studio flag:
cocos compile -p android --android-studio
You will have to run this command after any changes to your app are made, since the default Android Studio currently doesn't compile your project.
Furthermore the default Android Studio project does not include the Classes directory.
Suggestion: Use Eclipse or Xcode to develop your cocos2d-x projects for now. Hopefully future versions of cocos2d-x will have better support for Android Studio out of the box, this is critical considering Google is dropping support for Eclipse.
When you try to run the application on Android Studio, you get the error couldn't find "libcocos2dcpp.so" because it doesn't have the NDK for building your game.
I recommend you to compile proj.android and import that, cocos2d-x 3.7 doesn't support full Android Studio yet. Do this:
cocos compile -p android
Then import your proj.android to Android Studio.
Now you can run your application but you won't able to debug it, bad news (it will just install the APK on your device or virtual device).
Hope it helps.
Error: couldn't find "libcocos2dcpp.so.
For this you need to compile android studio project first so .so files and classes folder will be generated.
Open your command line and enter the following command to compile your android studio project:
cocos compile -p android --android-studio --ap android-24 --app-abi x86
This will create required files in your proj.android-studio directory.
Now import this project into Android Studio and try to run it.
I just upgraded my Android Studio to the very latest version 1.0rc4 and i am getting this error in gradle sync window
What is it I am supposed to do to make the build successful?