java.lang.NoSuchMethodError: No virtual method addFontWeightStyle(Ljava/lang/String;IZ)Z in class Landroid/graphics/FontFamily; or its super classes (declaration of 'android.graphics.FontFamily' appears in /system/framework/framework.jar)

GitHub | troyjperales | 5 months ago
  1. 0

    GitHub comment 5#243197554

    GitHub | 5 months ago | troyjperales
    java.lang.NoSuchMethodError: No virtual method addFontWeightStyle(Ljava/lang/String;IZ)Z in class Landroid/graphics/FontFamily; or its super classes (declaration of 'android.graphics.FontFamily' appears in /system/framework/framework.jar)
  2. 0

    android api 21+ camera2 api

    Stack Overflow | 11 months ago | user266038
    java.lang.NoSuchMethodError: No virtual method setTorchMode(Ljava/lang/String;Z)V in class Landroid/hardware/camera2/CameraManager; or its super classes (declaration of 'android.hardware.camera2.CameraManager' appears in /system/framework/framework.jar)
  3. 0

    [GAPPS][DAILY] Open GApps for Android 5.1,5… - Pg. 102 | Android Development and Hacking | XDA Forums

    xda-developers.com | 1 year ago
    java.lang.NoSuchMethodError: No virtual method checkSelfPermission(Ljava/lang/String;)I in class Landroid/app/Activity; or its super classes (declaration of 'android.app.Activity' appears in /system/framework/framework.jar)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {code:java} var cameraOverlay = Titanium.UI.createView({}); var cameraOverlayButton = Titanium.UI.createView({ bottom: 10, width: 100, height: 100, backgroundColor: "#f00" }); cameraOverlay.add(cameraOverlayButton); cameraOverlayButton.addEventListener('click', function(e) { Ti.Media.takePicture(); }); function onOpen(argument) { Titanium.Media.showCamera({ overlay: cameraOverlay, showControls: false, success: function(e) { Ti.API.info('# SUCCESS : ' + JSON.stringify(e)); }, cancel: function(e) { Ti.API.info('# CANCEL : ' + e.error); }, error: function(e) { Ti.API.info('# ERROR : ' + e.code + ' : ' + e.error); }, mediaTypes: Ti.Media.MEDIA_TYPE_PHOTO, }); } $.index.addEventListener("open", onOpen); $.index.open(); {code} When using the latest SDK from the git (checkout 15th Sept.) and opening a camera with Ti.Media.showCamera() the app is crashing with {code} WARN] W/System.err: java.lang.NoSuchMethodError: No virtual method checkSelfPermission(Ljava/lang/String;)I in class Landroid/app/Activity; or its super classes (declaration of 'android.app.Activity' appears in /system/framework/framework.jar) [WARN] W/System.err: at ti.modules.titanium.media.MediaModule.hasPermissions(MediaModule.java:288) [WARN] W/System.err: at ti.modules.titanium.media.MediaModule.showCamera(MediaModule.java:300) [WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) [WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177) [WARN] W/System.err: at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299) [WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203) [WARN] W/System.err: at android.os.Handler.dispatchMessage(Handler.java:98) [WARN] W/System.err: at android.os.Looper.loop(Looper.java:135) [WARN] W/System.err: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) [DEBUG] OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true [DEBUG] Atlas: Validating map... [ERROR] TiExceptionHandler: (main) [618,618] ----- Titanium Javascript Runtime Error ----- [ERROR] TiExceptionHandler: (main) [1,619] - In alloy/controllers/index.js:42,20 [ERROR] TiExceptionHandler: (main) [0,619] - Message: Uncaught Error: No virtual method checkSelfPermission(Ljava/lang/String;)I in class Landroid/app/Activity; or its super classes (declaration of 'android.app.Activity' appears in /system/framework/framework.jar) [ERROR] TiExceptionHandler: (main) [0,619] - Source: Titanium.Media.showCamera({ [ERROR] V8Exception: Exception occurred at alloy/controllers/index.js:42: Uncaught Error: No virtual method checkSelfPermission(Ljava/lang/String;)I in class Landroid/app/Activity; or its super classes (declaration of 'android.app.Activity' appears in /system/framework/framework.jar) {code} On my phone I'm running 5.1.1 not beta 6 (marshmallow) *Workaround* Removing the checkSelfPermission() from hasPermissions() (MediaModule.java) will remove the error but probably won't be useful for Marshmallow.

    Appcelerator JIRA | 1 year ago | Michael G
    java.lang.NoSuchMethodError: No virtual method checkSelfPermission(Ljava/lang/String;)I in class Landroid/app/Activity; or its super classes (declaration of 'android.app.Activity' appears in /system/framework/framework.jar)
  6. 0

    AndroidTwitterLogin.run crashes in Log.i line NoSuchMethodError

    Stack Overflow | 7 months ago | Frank Brosnan
    java.lang.NoSuchMethodError: No static method i(Ljava/lang/String;Ljava/lang/String;)V in class Landroid/util/Log; or its super classes (declaration of 'android.util.Log' appears in /system/framework/framework.jar)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      No virtual method addFontWeightStyle(Ljava/lang/String;IZ)Z in class Landroid/graphics/FontFamily; or its super classes (declaration of 'android.graphics.FontFamily' appears in /system/framework/framework.jar)

      at com.meetme.support.fonts.FontManagerImpl21.makeFamilyFromParsed()
    2. com.meetme.support
      FontManager.install
      1. com.meetme.support.fonts.FontManagerImpl21.makeFamilyFromParsed(FontManagerImpl21.java:68)
      2. com.meetme.support.fonts.FontManagerImpl21.init(FontManagerImpl21.java:53)
      3. com.meetme.support.fonts.FontManagerImpl21.init(FontManagerImpl21.java:44)
      4. com.meetme.support.fonts.FontManager.install(FontManager.java:66)
      4 frames