android-studio-3.0

java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)

半世苍凉 提交于 2019-11-26 15:21:26
After I updated my Android Studio to 3.0 I am getting No static method getFont() error. The project on which I am working is on github, https://github.com/ik024/GithubBrowser // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() maven { url "https://oss.sonatype.org/content/repositories/snapshots" } } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-SNAPSHOT' } } allprojects { repositories { jcenter() maven { url 'https://maven.google

Why I'm Getting Duplicate Class When Running My Android Project

别等时光非礼了梦想. 提交于 2019-11-26 12:47:44
问题 I\'m in the process of adding a navigation drawer to my app. and I\'m getting errors. The app gradle synchs just fine. but when I run the app I get a bunch of duplicate class error. I think it might be because I have conflicting dependencies added and that I\'m using v7 28.0.0 and some of the errors mention app: v4. all the examples I\'ve seen online use v7 28.0.0 eventhough I have this in main_activity.xml which uses v4. don\'t know if it\'s got something to do with the error. android

Android Room - simple select query - Cannot access database on the main thread

半腔热情 提交于 2019-11-26 11:55:00
问题 I am trying a sample with Room Persistence Library. I created an Entity: @Entity public class Agent { @PrimaryKey public String guid; public String name; public String email; public String password; public String phone; public String licence; } Created a DAO class: @Dao public interface AgentDao { @Query(\"SELECT COUNT(*) FROM Agent where email = :email OR phone = :phone OR licence = :licence\") int agentsCount(String email, String phone, String licence); @Insert void insertAgent(Agent agent)

Android studio 3.0: Unable to resolve dependency for :app@dexOptions/compileClasspath': Could not resolve project :animators

孤街浪徒 提交于 2019-11-26 10:17:50
I migrate to Android studio 3.0. So, the project become unable to compile a module named ":animator" and it displays me this error: Error:Unable to resolve dependency for ':app@dexOptions/compileClasspath': Could not resolve project :animators. <a href="openFile:/home/mobilepowered/MobilePowered/MyInnovalee/trunk17-10-2017/app/build.gradle">Open File</a><br><a href="Unable to resolve dependency for ':app@dexOptions/compileClasspath': Could not resolve project :animators.">Show Details</a> and show details gives this log : Unable to resolve dependency for ':app@dexOptions/compileClasspath':

Android Studio 3.0 Execution failed for task: unable to merge dex

妖精的绣舞 提交于 2019-11-26 08:59:05
问题 android studio was getting build error while build execution with following: Error:Execution failed for task \':app:transformDexArchiveWithExternalLibsDexMergerForDebug\'. java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex\" My app:build.gradle file: apply plugin: \'com.android.application\' android { compileSdkVersion 26 buildToolsVersion \'26.0.2\' defaultConfig { applicationId \"com.pdroid.foodieschoice\"

Android emulator not able to access the internet

前提是你 提交于 2019-11-26 07:55:25
问题 I know that similar questions have been asked before, but my problem is new only after installing Android Studio 2.3, the latest version in March 2017. I have several years experience developing Android applications, and I have never encountered this problem before. After upgrading to version 2.3 of Android Studio, my emulator is no longer able to access the internet. I even uninstalled/reinstalled Android Studio 2.3 from scratch and created a new emulator, and I am still getting the same

java.lang.IllegalArgumentException: Invalid Region.Op - only INTERSECT and DIFFERENCE in Button background failure

孤者浪人 提交于 2019-11-26 07:43:35
问题 android Button background failure when I try to add android:background=\"@drawable/roundedbutton\" into the .xml <Button android:id=\"@+id/button_stop\" style=\"@android:style/Widget.Button\" android:layout_width=\"match_parent\" android:layout_height=\"wrap_content\" android:layout_margin=\"3dp\" android:background=\"@drawable/roundedbutton\" android:layout_weight=\"1\" android:text=\"stop\" android:textSize=\"18sp\" /> the roundedbutton.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <shape

java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)

元气小坏坏 提交于 2019-11-26 04:22:06
问题 After I updated my Android Studio to 3.0 I am getting No static method getFont() error. The project on which I am working is on github, https://github.com/ik024/GithubBrowser // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() maven { url \"https://oss.sonatype.org/content/repositories/snapshots\" } } dependencies { classpath \'com.android.tools.build:gradle:3.0.0\' classpath \'com.jakewharton:butterknife

Android studio 3.0: Unable to resolve dependency for :app@dexOptions/compileClasspath&#39;: Could not resolve project :animators

半世苍凉 提交于 2019-11-26 01:57:47
问题 I migrate to Android studio 3.0. So, the project become unable to compile a module named \":animator\" and it displays me this error: Error:Unable to resolve dependency for \':app@dexOptions/compileClasspath\': Could not resolve project :animators. <a href=\"openFile:/home/mobilepowered/MobilePowered/MyInnovalee/trunk17-10-2017/app/build.gradle\">Open File</a><br><a href=\"Unable to resolve dependency for ':app@dexOptions/compileClasspath': Could not resolve project :animators.\">Show Details

Unable to merge dex

落爺英雄遲暮 提交于 2019-11-25 21:49:25
问题 I have Android Studio Beta. I created a new project with compile my old modules but when I tried launching the app it did not launch with the message: Error:Execution failed for task \':app:transformDexArchiveWithExternalLibsDexMergerForDebug\'. com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex But I don\'t know how to solve this error. I googled this for hours but with no success. My project gradle: // Top-level build file where you can add configuration options