Comunidad Game Maker

Ayuda => Preguntas y respuestas => Mensaje iniciado por: Asterth en Junio 16, 2020, 02:42:14 am

Título: Problema al exportar mi proyecto a Android.
Publicado por: Asterth en Junio 16, 2020, 02:42:14 am
 :GMS:Estoy utilizando el target SDK 28 para poder publicar apps en la play store, pero cuando lo exporto me sale este problema, espero alguien me pueda ayudar y se lo agradezco mucho.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':com.companyname.Test:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Johann en Junio 16, 2020, 03:13:45 am
Ahi dice que falló, pero falta l aparte que dice cual fué el error:

Citar
see the compiler error output for details.

Si sabemos pq falla podremos corregirlo.
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Asterth en Junio 16, 2020, 03:20:09 am
Hola, ¿dónde puedo ver esa parte?
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Johann en Junio 16, 2020, 03:24:21 am
ahi mismo en la consola, pero mas arriba, si quieres copialo todo.
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Asterth en Junio 16, 2020, 03:35:29 am

Observed package id 'extras;amazon;buildtools' in inconsistent location 'D:\Desarrollo\SDK\extras\android\amazon\buildtools' (Expected 'D:\Desarrollo\SDK\extras\amazon\buildtools')
Observed package id 'extras;amazon;kindle_fire_usb_driver' in inconsistent location 'D:\Desarrollo\SDK\extras\android\amazon\kindle_fire_usb_driver' (Expected 'D:\Desarrollo\SDK\extras\amazon\kindle_fire_usb_driver')
Observed package id 'extras;amazon;mapsv2' in inconsistent location 'D:\Desarrollo\SDK\extras\android\amazon\mapsv2' (Expected 'D:\Desarrollo\SDK\extras\amazon\mapsv2')
Incremental java compilation is an incubating feature.
:com.companyname.Test:preBuild UP-TO-DATE
:com.companyname.Test:preReleaseBuild UP-TO-DATE
:com.companyname.Test:checkReleaseManifest
:com.companyname.Test:preDebugBuild UP-TO-DATE
:com.companyname.Test:prepareComAndroidSupportMultidex101Library
:com.companyname.Test:prepareComAndroidSupportSupportV428Library
:com.companyname.Test:prepareComGoogleAndroidGmsPlayServicesAds961Library
:com.companyname.Test:prepareComGoogleAndroidGmsPlayServicesAdsLite961Library
:com.companyname.Test:prepareComGoogleAndroidGmsPlayServicesBase961Library
:com.companyname.Test:prepareComGoogleAndroidGmsPlayServicesBasement961Library
:com.companyname.Test:prepareComGoogleAndroidGmsPlayServicesClearcut961Library
:com.companyname.Test:prepareComGoogleAndroidGmsPlayServicesDrive961Library
:com.companyname.Test:prepareComGoogleAndroidGmsPlayServicesGames961Library
:com.companyname.Test:prepareComGoogleAndroidGmsPlayServicesGass961Library
:com.companyname.Test:prepareComGoogleAndroidGmsPlayServicesGcm961Library
:com.companyname.Test:prepareComGoogleAndroidGmsPlayServicesIid961Library
:com.companyname.Test:prepareComGoogleAndroidGmsPlayServicesPlus961Library
:com.companyname.Test:prepareComGoogleAndroidGmsPlayServicesTasks961Library
:com.companyname.Test:prepareReleaseDependencies
:com.companyname.Test:compileReleaseAidl
:com.companyname.Test:compileReleaseRenderscript
:com.companyname.Test:generateReleaseBuildConfig
:com.companyname.Test:mergeReleaseShaders
:com.companyname.Test:compileReleaseShaders
:com.companyname.Test:generateReleaseAssets
:com.companyname.Test:mergeReleaseAssets
:com.companyname.Test:generateReleaseResValues
:com.companyname.Test:generateReleaseResources
:com.companyname.Test:mergeReleaseResources
:com.companyname.Test:processArmeabi-v7aReleaseManifest
Z:\com.companyname.Test\src\main\AndroidManifest.xml:35:3-99:17 Warning:
   application@android:label was tagged at AndroidManifest.xml:35 to replace other declarations but no other declaration present
Z:\com.companyname.Test\src\main\AndroidManifest.xml:36:5-44:16 Warning:
   activity#com.companyname.Test.RunnerActivity@android:label was tagged at AndroidManifest.xml:36 to replace other declarations but no other declaration present
:com.companyname.Test:processArmeabi-v7aReleaseResources
:com.companyname.Test:processArmeabiReleaseManifest
Z:\com.companyname.Test\src\main\AndroidManifest.xml:35:3-99:17 Warning:
   application@android:label was tagged at AndroidManifest.xml:35 to replace other declarations but no other declaration present
Z:\com.companyname.Test\src\main\AndroidManifest.xml:36:5-44:16 Warning:
   activity#com.companyname.Test.RunnerActivity@android:label was tagged at AndroidManifest.xml:36 to replace other declarations but no other declaration present
:com.companyname.Test:processArmeabiReleaseResources
:com.companyname.Test:processMipsReleaseManifest
Z:\com.companyname.Test\src\main\AndroidManifest.xml:35:3-99:17 Warning:
   application@android:label was tagged at AndroidManifest.xml:35 to replace other declarations but no other declaration present
Z:\com.companyname.Test\src\main\AndroidManifest.xml:36:5-44:16 Warning:
   activity#com.companyname.Test.RunnerActivity@android:label was tagged at AndroidManifest.xml:36 to replace other declarations but no other declaration present
:com.companyname.Test:processMipsReleaseResources
:com.companyname.Test:processUniversalReleaseManifest
Z:\com.companyname.Test\src\main\AndroidManifest.xml:35:3-99:17 Warning:
   application@android:label was tagged at AndroidManifest.xml:35 to replace other declarations but no other declaration present
Z:\com.companyname.Test\src\main\AndroidManifest.xml:36:5-44:16 Warning:
   activity#com.companyname.Test.RunnerActivity@android:label was tagged at AndroidManifest.xml:36 to replace other declarations but no other declaration present
:com.companyname.Test:processUniversalReleaseResources
:com.companyname.Test:processX86ReleaseManifest
Z:\com.companyname.Test\src\main\AndroidManifest.xml:35:3-99:17 Warning:
   application@android:label was tagged at AndroidManifest.xml:35 to replace other declarations but no other declaration present
Z:\com.companyname.Test\src\main\AndroidManifest.xml:36:5-44:16 Warning:
   activity#com.companyname.Test.RunnerActivity@android:label was tagged at AndroidManifest.xml:36 to replace other declarations but no other declaration present
:com.companyname.Test:processX86ReleaseResources
:com.companyname.Test:generateReleaseSources
:com.companyname.Test:incrementalReleaseJavaCompilationSafeguard
:com.companyname.Test:compileReleaseJavaWithJavac
:com.companyname.Test:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoRenderer.java:51: error: package android.support.v4.content does not exist
import android.support.v4.content.ContextCompat;
                                 ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoRenderer.java:52: error: package android.support.v4.app does not exist
import android.support.v4.app.ActivityCompat;
                             ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GcmBroadcastReceiver.java:7: error: package android.support.v4.content does not exist
import android.support.v4.content.WakefulBroadcastReceiver;
                                 ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GcmBroadcastReceiver.java:19: error: cannot find symbol
public class GcmBroadcastReceiver extends WakefulBroadcastReceiver
                                          ^
  symbol: class WakefulBroadcastReceiver
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GcmPush.java:20: error: package android.support.v4.app does not exist
import android.support.v4.app.NotificationCompat;
                             ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:13: error: package android.support.v4.app does not exist
import android.support.v4.app.FragmentManager;
                             ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:18: error: package android.support.v4.app does not exist
import android.support.v4.app.FragmentActivity;
                             ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:5: error: package android.support.v4.app does not exist
import android.support.v4.app.FragmentActivity;
                             ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:76: error: cannot find symbol
public class RunnerActivity extends FragmentActivity implements SensorEventListener
                                    ^
  symbol: class FragmentActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoGLSurfaceView.java:185: error: incompatible types: Context cannot be converted to RunnerActivity
      if ((m_context != null) && (m_context instanceof RunnerActivity) && (((RunnerActivity)m_context).mYYPrefs != null))
                                  ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoGLSurfaceView.java:185: error: incompatible types: Context cannot be converted to RunnerActivity
      if ((m_context != null) && (m_context instanceof RunnerActivity) && (((RunnerActivity)m_context).mYYPrefs != null))
                                                                                            ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoGLSurfaceView.java:187: error: incompatible types: Context cannot be converted to RunnerActivity
         int allow24BitModes = ((RunnerActivity)m_context).mYYPrefs.getInt("YYUse24Bit");
                                                ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoGLSurfaceView.java:206: error: incompatible types: Context cannot be converted to RunnerActivity
         if (!(m_context instanceof RunnerActivity))
               ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoGLSurfaceView.java:211: error: incompatible types: Context cannot be converted to RunnerActivity
         if (((RunnerActivity)m_context).mYYPrefs == null)
                              ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoGLSurfaceView.java:467: error: incompatible types: Context cannot be converted to RunnerActivity
      if (((RunnerActivity)m_context).mYYPrefs != null)
                           ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoGLSurfaceView.java:471: error: incompatible types: Context cannot be converted to RunnerActivity
         useGL2 = ((RunnerActivity)m_context).mYYPrefs.getBoolean("UseShaders") ? 1 : 0;
                                   ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoRenderer.java:220: error: cannot find symbol
             if(ContextCompat.checkSelfPermission(RunnerActivity.CurrentActivity,Manifest.permission.WRITE_EXTERNAL_STORAGE)!= PackageManager.PERMISSION_GRANTED)
                ^
  symbol:   variable ContextCompat
  location: class DemoRenderer
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoRenderer.java:225: error: cannot find symbol
             if(ContextCompat.checkSelfPermission(RunnerActivity.CurrentActivity,Manifest.permission.READ_EXTERNAL_STORAGE)!= PackageManager.PERMISSION_GRANTED)
                ^
  symbol:   variable ContextCompat
  location: class DemoRenderer
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoRenderer.java:236: error: cannot find symbol
             ActivityCompat.requestPermissions(RunnerActivity.CurrentActivity,perms,RUNNER_STORAGE_PERMISSION_REQUEST);
             ^
  symbol:   variable ActivityCompat
  location: class DemoRenderer
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoRenderer.java:465: error: cannot find symbol
                     ApplicationInfo ai = m_context.getPackageManager().getApplicationInfo(RunnerActivity.CurrentActivity.getComponentName().getPackageName(), PackageManager.GET_META_DATA);
                                                                                                                         ^
  symbol:   method getComponentName()
  location: variable CurrentActivity of type RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\Gamepad\Gamepad.java:315: error: cannot find symbol
         if ((RunnerActivity.CurrentActivity.checkCallingOrSelfPermission("android.permission.BLUETOOTH") == PackageManager.PERMISSION_GRANTED))
                                            ^
  symbol:   method checkCallingOrSelfPermission(String)
  location: variable CurrentActivity of type RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GcmBroadcastReceiver.java:21: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GcmBroadcastReceiver.java:31: error: cannot find symbol
        startWakefulService(context, (intent.setComponent(comp)));
        ^
  symbol:   method startWakefulService(Context,Intent)
  location: class GcmBroadcastReceiver
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GcmBroadcastReceiver.java:32: error: cannot find symbol
        setResultCode(Activity.RESULT_OK);
        ^
  symbol:   method setResultCode(int)
  location: class GcmBroadcastReceiver
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GcmIntentService.java:178: error: cannot find symbol
        GcmBroadcastReceiver.completeWakefulIntent(intent);
                            ^
  symbol:   method completeWakefulIntent(Intent)
  location: class GcmBroadcastReceiver
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GcmPush.java:473: error: package NotificationCompat does not exist
         NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context)
                           ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GcmPush.java:476: error: package NotificationCompat does not exist
         .setStyle(new NotificationCompat.BigTextStyle()
                                         ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GcmPush.java:473: error: package NotificationCompat does not exist
         NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context)
                                                                     ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:96: error: incompatible types: RunnerActivity cannot be converted to Context
      GoogleApiClient.Builder builder = new GoogleApiClient.Builder(RunnerActivity.CurrentActivity);
                                                                                  ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:217: error: incompatible types: RunnerActivity cannot be converted to Activity
        Dialog dialog = GooglePlayServicesUtil.getErrorDialog(errorCode,RunnerActivity.CurrentActivity, requestCode);
                                                                                      ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:245: error: incompatible types: RunnerActivity cannot be converted to Activity
                result.startResolutionForResult(RunnerActivity.CurrentActivity, REQUEST_RESOLVE_ERROR);
                                                              ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:482: error: incompatible types: RunnerActivity cannot be converted to Context
      mGcmPush = new GcmPush( RunnerActivity.CurrentActivity );
                                            ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:843: error: cannot find symbol
            RunnerActivity.CurrentActivity.startActivityForResult(Games.Achievements.getAchievementsIntent(getApiClient()), RC_GPS_ACTIVITY);
                                          ^
  symbol:   method startActivityForResult(Intent,int)
  location: variable CurrentActivity of type RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:846: error: incompatible types: RunnerActivity cannot be converted to Context
            (new AlertDialog.Builder(RunnerActivity.CurrentActivity))
                                                   ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:856: error: cannot find symbol
         RunnerActivity.CurrentActivity.startActivityForResult(Games.Leaderboards.getAllLeaderboardsIntent(getApiClient()), RC_GPS_ACTIVITY);
                                       ^
  symbol:   method startActivityForResult(Intent,int)
  location: variable CurrentActivity of type RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:859: error: incompatible types: RunnerActivity cannot be converted to Context
         (new AlertDialog.Builder(RunnerActivity.CurrentActivity))
                                                ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:912: error: cannot find symbol
               RunnerActivity.CurrentActivity.runOnUiThread(new Runnable() {
                                             ^
  symbol:   method runOnUiThread(<anonymous Runnable>)
  location: variable CurrentActivity of type RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:930: error: incompatible types: RunnerActivity cannot be converted to Context
      interstitialAd = new InterstitialAd(RunnerActivity.CurrentActivity);
                                                        ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:1018: error: cannot find symbol
          AbsoluteLayout layout = (AbsoluteLayout)RunnerActivity.CurrentActivity.findViewById(R.id.ad);
                                                                                ^
  symbol:   method findViewById(int)
  location: variable CurrentActivity of type RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:1033: error: incompatible types: RunnerActivity cannot be converted to Context
         adView = new AdView(RunnerActivity.CurrentActivity);
                                           ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\GooglePlayServicesExtension.java:1084: error: cannot find symbol
            AbsoluteLayout layout = (AbsoluteLayout)RunnerActivity.CurrentActivity.findViewById(R.id.ad);
                                                                                  ^
  symbol:   method findViewById(int)
  location: variable CurrentActivity of type RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\Purchases\IRunnerBilling.java:130: error: cannot find symbol
      SharedPreferences prefs = RunnerActivity.CurrentActivity.getPreferences(Context.MODE_PRIVATE);
                                                              ^
  symbol:   method getPreferences(int)
  location: variable CurrentActivity of type RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:170: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:196: error: cannot find symbol
      return super.onKeyLongPress(keyCode, event);
             ^
  symbol:   variable super
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:233: error: cannot find symbol
          DisplayMetrics dm = getResources().getDisplayMetrics();
                              ^
  symbol:   method getResources()
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:272: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:275: error: cannot find symbol
      this.requestWindowFeature( Window.FEATURE_NO_TITLE );
          ^
  symbol: method requestWindowFeature(int)
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:278: error: cannot find symbol
        super.onCreate(savedInstanceState);
        ^
  symbol:   variable super
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:281: error: incompatible types: RunnerActivity cannot be converted to Context
      RunnerJNILib.Init( this );
                         ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:289: error: cannot find symbol
         m_versionName = this.getPackageManager().getPackageInfo(this.getPackageName(), 0).versionName;
                                                                     ^
  symbol: method getPackageName()
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:289: error: cannot find symbol
         m_versionName = this.getPackageManager().getPackageInfo(this.getPackageName(), 0).versionName;
                             ^
  symbol: method getPackageManager()
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:298: error: cannot find symbol
      switch( getResources().getConfiguration().orientation ) {
              ^
  symbol:   method getResources()
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:298: error: illegal start of type
      switch( getResources().getConfiguration().orientation ) {
            ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:313: error: cannot find symbol
       Display display = getWindowManager().getDefaultDisplay();
                         ^
  symbol:   method getWindowManager()
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:321: error: cannot find symbol
        mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE);
                                                         ^
  symbol:   variable SENSOR_SERVICE
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:369: error: cannot find symbol
      this.registerReceiver(mReceiver, filter1);
          ^
  symbol: method registerReceiver(BroadcastReceiver,IntentFilter)
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:371: error: cannot find symbol
      this.registerReceiver(mReceiver, filter3);
          ^
  symbol: method registerReceiver(BroadcastReceiver,IntentFilter)
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:375: error: cannot find symbol
       final View decorView = getWindow().getDecorView();
                              ^
  symbol:   method getWindow()
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:398: error: cannot find symbol
         ApplicationInfo ai = getPackageManager().getApplicationInfo(this.getComponentName().getPackageName(), PackageManager.GET_META_DATA);
                                                                         ^
  symbol: method getComponentName()
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:398: error: cannot find symbol
         ApplicationInfo ai = getPackageManager().getApplicationInfo(this.getComponentName().getPackageName(), PackageManager.GET_META_DATA);
                              ^
  symbol:   method getPackageManager()
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:455: error: cannot find symbol
          String packageName = this.getComponentName().getPackageName();
                                   ^
  symbol: method getComponentName()
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:459: error: cannot find symbol
               ApplicationInfo ai = getPackageManager().getApplicationInfo(this.getComponentName().getPackageName(), PackageManager.GET_META_DATA);
                                                                               ^
  symbol: method getComponentName()
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:459: error: cannot find symbol
               ApplicationInfo ai = getPackageManager().getApplicationInfo(this.getComponentName().getPackageName(), PackageManager.GET_META_DATA);
                                    ^
  symbol:   method getPackageManager()
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:471: error: cannot find symbol
               ApplicationInfo ai = getPackageManager().getApplicationInfo(this.getComponentName().getPackageName(), PackageManager.GET_META_DATA);
                                                                               ^
  symbol: method getComponentName()
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:471: error: cannot find symbol
               ApplicationInfo ai = getPackageManager().getApplicationInfo(this.getComponentName().getPackageName(), PackageManager.GET_META_DATA);
                                    ^
  symbol:   method getPackageManager()
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:495: error: cannot find symbol
            ApplicationInfo ai = getPackageManager().getApplicationInfo(this.getComponentName().getPackageName(), PackageManager.GET_META_DATA);
                                                                            ^
  symbol: method getComponentName()
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:495: error: cannot find symbol
            ApplicationInfo ai = getPackageManager().getApplicationInfo(this.getComponentName().getPackageName(), PackageManager.GET_META_DATA);
                                 ^
  symbol:   method getPackageManager()
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:599: error: cannot find symbol
          setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE );
          ^
  symbol:   method setRequestedOrientation(int)
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:603: error: cannot find symbol
          setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT );
          ^
  symbol:   method setRequestedOrientation(int)
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:607: error: cannot find symbol
          setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE );
          ^
  symbol:   method setRequestedOrientation(int)
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:611: error: cannot find symbol
          setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT );
          ^
  symbol:   method setRequestedOrientation(int)
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:618: error: cannot find symbol
          setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE );
          ^
  symbol:   method setRequestedOrientation(int)
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:625: error: cannot find symbol
          setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT );
          ^
  symbol:   method setRequestedOrientation(int)
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:628: error: cannot find symbol
          setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED );
          ^
  symbol:   method setRequestedOrientation(int)
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:635: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:639: error: cannot find symbol
        super.onStart();
        ^
  symbol:   variable super
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:667: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:671: error: cannot find symbol
      super.onRestart();
      ^
  symbol:   variable super
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:690: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:709: error: cannot find symbol
        super.onStop();      
        ^
  symbol:   variable super
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:749: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:753: error: cannot find symbol
        super.onDestroy();
        ^
  symbol:   variable super
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:817: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:821: error: cannot find symbol
       super.onWindowFocusChanged(hasFocus);
       ^
  symbol:   variable super
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:889: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:893: error: cannot find symbol
      super.onPause();
      ^
  symbol:   variable super
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:930: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:939: error: cannot find symbol
       super.onResume();      
       ^
  symbol:   variable super
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:991: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:994: error: cannot find symbol
       super.onCreateOptionsMenu( menu );
       ^
  symbol:   variable super
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:1017: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:1037: error: cannot find symbol
         Intent settingsActivity = new Intent( getBaseContext(), RunnerPreferenceActivity.class );
                                               ^
  symbol:   method getBaseContext()
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:1038: error: cannot find symbol
         startActivity( settingsActivity );
         ^
  symbol:   method startActivity(Intent)
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:1041: error: incompatible types: RunnerActivity cannot be converted to Context
          AlertDialog.Builder builder = new AlertDialog.Builder(this);
                                                                ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:1062: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:1102: error: cannot find symbol
              return super.onKeyDown(keyCode, event );     
                     ^
  symbol:   variable super
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:1108: error: method does not override or implement a method from a supertype
    @Override
    ^
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:1131: error: cannot find symbol
           return super.onKeyUp(keyCode, event );     
                  ^
  symbol:   variable super
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:1150: error: cannot find symbol
            WindowManager lWindowManager =  (WindowManager) getSystemService(WINDOW_SERVICE);
                                                                             ^
  symbol:   variable WINDOW_SERVICE
  location: class RunnerActivity
Z:\com.companyname.Test\src\main\java\com\companyname\Test\RunnerActivity.java:1152: error: cannot find symbol
            Configuration cfg = getResources().getConfiguration();
                                ^
  symbol:   method getResources()
  location: class RunnerActivity
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Z:\com.companyname.Test\src\main\java\com\companyname\Test\Gamepad\Gamepad.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
100 errors
:com.companyname.Test:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':com.companyname.Test:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Johann en Junio 16, 2020, 03:40:37 am
Citar
Z:\com.companyname.Test\src\main\java\com\companyname\Test\DemoRenderer.java:51: error: package android.support.v4.content does not exist
import android.support.v4.content.ContextCompat;
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Asterth en Junio 16, 2020, 03:47:08 am
Fuí al archivo y puse el support-v4, ¿o qué debería de hacer?
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Johann en Junio 16, 2020, 04:32:36 am
O tienes mal configurada la SupportLib o no tienes internet en el PC para que el GM la descargue.
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Asterth en Junio 16, 2020, 04:37:27 am
Ok, primero, yo tenía como target sdk la versión 23 y me tocó cambiarla a la 28, por eso está dando tantos problemas, uso una versión antigua del SDK downloader y las recientes tampoco ayudan, como support lib tengo 28.
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: yokaiworld en Junio 16, 2020, 06:12:34 am
https://www.youtube.com/watch?v=tbGBoZ1k3O4
MINUTO 18:44
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Asterth en Junio 16, 2020, 08:39:22 am
Tengo la versión del build tools adecuada, lo exporto y me pide que instale un archivo en el disco local Z que ni me deja acceder, si alguien fuera tan amable de mandar su archivo SDK con el Compile SDK 28 funcionando se lo agradecería muchisimo, o que me puedan ayudar con el problema.

de hecho, no se tienen que complicar mucho, si me pueden facilitar el archivo 28.0.0 que se encuentra en support-v4 se los agradecería.
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Johann en Junio 16, 2020, 09:12:55 pm
Eso no funciona tan asi.
Revisa en tu sdkmanager que tengas todo lo relacionado con API level 28

Citar
build-tools;28.0.3
extras;android;m2repository
extras;google;m2repository
platforms;android-28
system-images;android-28;default;x86_64
system-images;android-28;google_apis;x86_64

escribe sdkmanager --list en tu consola para ver que tienes instalado.
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Asterth en Junio 16, 2020, 09:40:17 pm
Tengo descargado todo el SDK Manager y me sigue sin dejar.
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Johann en Junio 16, 2020, 09:48:53 pm
Si aun no te funciona, algo te falta.
Deberias mostrar mas informaciín para poder ayudarte:
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Asterth en Junio 16, 2020, 10:39:57 pm
Te paso el archivo en MEGA que no supe como poner imagenes.

https://mega.nz/file/cMgzHC6S#JFgFoCpbIVj7AGOlR7nxgdDT-1Xqr5bXcEqYDD5iNlA
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: yokaiworld en Junio 17, 2020, 02:45:33 am
tengo entendido que el GMS 2 mas actualizado solo trabaja con el android studio 3.5 o superior
The old "SDK Manager" method of installing your Android SDK on Windows is no longer supported in GMS2 2.2.4+, as Google won't allow AndroidX to be downloaded via SDK manager. You will need to change to Android Studio.

Ademas parece que tienes algo mal con el JAVA
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: Asterth en Junio 17, 2020, 05:44:30 am
Estoy utilizando Game Maker Studio, y probaré con el java y ya te diré como fue.

Edit: No es java, me pide un archivo llamado Android.support.app
Título: Re:Problema al exportar mi proyecto a Android.
Publicado por: yokaiworld en Junio 18, 2020, 04:49:44 am
yo acabo de coopilar en api 28 siguiendo el tutorial que te puse, duro como 30 minutos sin problemas,
tengo el android studio 4 y todo lo que dice el video la unica diferencia es que por defecto baja el NDK 21 Y GMS2 es unicamente compatible con el 20 y me lo baje manualmente (luego me di cuenta que el android estudio tiene una opcion para bajarlo desde ahi) dime la ubicacion de los archivos que necesitas y te los mando sino pesan demasiado claro