I am just trying to run the example on this page. I used the ad-id provided by default rather than my own id as I am just running an example to test.
I noticed someone had the same issue in the past but appears to have miraculously resolved itself.
However, for me the problem remains.
Based on that thread, I followed:
adb logcat > crash.txt
click app on device
command + c
abort adb logcat
command after app crash, then attach the crash.txt file in the forum.
I couldn’t attach with a .txt extension, so I have changed the extensioncrash.pdf (1.1 MB) to .pdf.
What can I do to resolve this issue?
htlxyz
December 1, 2020, 1:27am
#2
is your AppActivity extends com.sdkbox.plugin.SDKBoxActivity
?
import org.cocos2dx.lib.Cocos2dxGLSurfaceView; import android.os.Bundle; import org.cocos2dx.javascript.SDKWrapper; import com.cocos.analytics.CAAgent; import android.content.Context; import android.content.Intent; import android.content.res.Configuration; public class AppActivity extends com.sdkbox.plugin.SDKBoxActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Workaround in https://stackoverflow.com/questions/16283079/re-launch-of-activity-on-home-button-but-only-the-first-time/16447508 if (!isTaskRoot()) { // Android launched another instance of the root activity into an existing task // so just quietly finish and go away, dropping the user back into the activity // at the top of the stack (ie: the last state of this task) // Don't need to finish it again since it's finished in super.onCreate .
Thank you! That fixed the crash. I didn’t see that in the guide here .
However, I am still having some problems. I have my admob.ts in the attached zip folderadmob.zip (111.4 KB) .
When I start the app, after several seconds, I see image1 from the attached zip. If I press the “Cache Interstitial” button I see image2. If I press the “Show Interstitial” button, nothing happens.
Do I need to get a proper ad-id for this to work?
htlxyz
December 2, 2020, 12:44am
#4
ERROR_CODE_NO_FILL,
Admob has no advertisement to return to you.
use test mode or admob test ad id,
Thanks again!
It’s working!
Perhaps these additional steps should be included in the guide I referred to above? The guide does mention configuring with your ad id, but does not give guidance about a test id if you don’t have your own ad id.
htlxyz
December 3, 2020, 1:24am
#6
yes, we wil give a guidance, thanks.